Access network printer
From: Ben (ben.leung@e-infomax.com)
Date: 10/29/02
- Next message: Joseph Geretz: "Re: How do I give ASP.NET process network credentials?"
- Previous message: Willy Denoyette [MVP]: "Re: How do I give ASP.NET process network credentials?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Ben" <ben.leung@e-infomax.com> Date: Tue, 29 Oct 2002 16:22:54 -0500
Hi,
I'm trying to print a file on a printer connected to a network server (i.e.,
server B). The printer has been installed on the web server (i.e., server
A), but my ASP.NET page cannot recogonize the printer with the
"PrinterSettings.InstalledPrinters" property.
I was able to get it working by modifying the <processModel> tag to
<processModel ... userName="system" ...> in the machine.config file.
However, I have read many articles pointing out that running the ASP.NET
worker process under the system account is very insecure. So I tried a
second method:
I enabled anonymous access on the web server and instructed it to use the
account, IUSR_SERVER-A. Then on server B, I created an identical account --
IUSR_SERVER-A -- with identical password. That should allow user
IUSR_SERVER-A on server A to access the resources on server B, correct (the
two servers are on different domains)?
If I log on to server A as IUSR_SERVER-A, I can see the network printer
using the "PrinterSettings.InstalledPrinters" property in my ASP.NET page.
However, if I log on as another user, or simply log out, the network printer
will not appear on the printer list. It seems like the network access is
terminated, when the user logs out.
This is obviously a security issue, and I'm running out of ideas on how to
resolve this. Has anyone come across with the same problem? Any helps or
directions will be greatly appreciated.
Thanks in advance!!
-Ben
- Next message: Joseph Geretz: "Re: How do I give ASP.NET process network credentials?"
- Previous message: Willy Denoyette [MVP]: "Re: How do I give ASP.NET process network credentials?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|