Access network printer

From: Ben (ben.leung@e-infomax.com)
Date: 10/29/02


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



Relevant Pages

  • Re: Fully parallel Scheme-based language w/ evaluator
    ... Windows Server 2003 and networks in simple - and irreverent - terms. ... If networking really is a big deal, ... Concepts and Terminology in Part I, and The Design and Deployment of Network ...
    (comp.lang.misc)
  • Re: User getting "Account is Locked Out" for 2 days
    ... Then pull the network cable from that system to disconnect ... making this local profile newer than the one on the server. ... out what is going on...i have gone into his account and unchecked ...
    (microsoft.public.windows.server.sbs)
  • IIS 6 Directory Services Mapping ACL Problems
    ... We are trying to configure certificate based logins using the ... When I authenticate on our web server with my certificate I my domain ... account username shows up in the web log. ... The files are stored on another server in the domain. ...
    (microsoft.public.inetserver.iis.security)
  • Re: XP HOME does not work like XP PRO
    ... >>>network (although the other two PC PRSs can see, but not access the PC HOME. ... >>>I have all users and administrators set ut identically on all three machines. ... >server as all my machines are simply plugged into a Netgear ADSL router. ... >BTW is it normal that each machine has an account administrator, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)