B
Brian
Hi,
We have an asp.net 2 application that prints a file (integrated security and
impersonation is configured
for the application). The application is a non-windows version of:
http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx
It all works fine on IIS 5 (XP) and 6 (2k3) when printing to a local printer
defined on the IIS server. However when setting the printer to a network
printer the IIS server fails when accessing the web site from a remote
computer (that is, it works when accessing the pages on the IIS computer but
not from another computer).
Does anyone have any ideas of the security settings necessary to enable
network printer access?
Brian
EVENT - SYSTEM
--------------------------------------------------------------------------------------------------
Event Type: Warning
Event Source: Print
Event Category: None
Event ID: 20
Date: 8/02/2007
Time: 1:15:14 PM
User: NT AUTHORITY\SYSTEM
Computer: computer
Description:
Printer Driver FX ApeosPort-II C4300 PCL 6 for Windows NT x86 Version-3 was
added or updated. Files:- fx6raeim.dll, fx6raeiu.dll, fx6rae.ddd,
fx6rae.hlp, fx6rajdm.dll, fx6raeir.xrs, fx6raex.dll, fx6raex.exe,
fxzddmif.dll, fxzdhb32.dll, fxzpmc3.dll, fxzadcmn.dll, fxzarl32.dll,
fxz430a3.dll, fxlzjnie.dll, fxlznie1.dll, fx6rae.cfg, fx6rae.tbl,
fx6rae.cnt, fx6rae.xrs, fx6rae.cdd, fx6rbe.ddd, fx6rce.ddd, fx6rde.ddd,
fx6ree.ddd, fx6rfe.ddd.
EVENT - APPLICATION
--------------------------------------------------------------------------------------------------
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/02/2007 1:15:16 PM
Event time (UTC): 8/02/2007 3:15:16 AM
Event ID: 4ae3a3b1b39c4ff1b5734af3590eb19e
Event sequence: 105
Event occurrence: 6
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/BatchPrint-1-128153695175334014
Trust level: Full
Application Virtual Path: /BatchPrint
Application Path: C:\Data\Reports\Web\BatchPrint\
Machine name: DELL-29
Process information:
Process ID: 3424
Process name: aspnet_wp.exe
Account name: DELL-29\ASPNET
Exception information:
Exception type: InvalidPrinterException
Exception message: Settings to access printer '\\server\printer' are not
valid.
Request information:
Request URL: http://dell-29/batchprint/test.aspx
Request path: /batchprint/test.aspx
User host address: 192.168.1.17
User: domain\user
Is authenticated: True
Authentication Type: Negotiate
Thread account name: DELL-29\ASPNET
Thread information:
Thread ID: 5
Thread account name: DELL-29\ASPNET
Is impersonating: False
Stack trace:
at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal()
at System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings
pageSettings)
at System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument
document, PrintEventArgs e)
at
System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument
document, PrintEventArgs e)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at PrintingExample.Print() in
c:\Data\Reports\Web\BatchPrint\Test.aspx.cs:line 45
at Test.Page_Load(Object sender, EventArgs e) in
c:\Data\Reports\Web\BatchPrint\Test.aspx.cs:line 20
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
We have an asp.net 2 application that prints a file (integrated security and
impersonation is configured
for the application). The application is a non-windows version of:
http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx
It all works fine on IIS 5 (XP) and 6 (2k3) when printing to a local printer
defined on the IIS server. However when setting the printer to a network
printer the IIS server fails when accessing the web site from a remote
computer (that is, it works when accessing the pages on the IIS computer but
not from another computer).
Does anyone have any ideas of the security settings necessary to enable
network printer access?
Brian
EVENT - SYSTEM
--------------------------------------------------------------------------------------------------
Event Type: Warning
Event Source: Print
Event Category: None
Event ID: 20
Date: 8/02/2007
Time: 1:15:14 PM
User: NT AUTHORITY\SYSTEM
Computer: computer
Description:
Printer Driver FX ApeosPort-II C4300 PCL 6 for Windows NT x86 Version-3 was
added or updated. Files:- fx6raeim.dll, fx6raeiu.dll, fx6rae.ddd,
fx6rae.hlp, fx6rajdm.dll, fx6raeir.xrs, fx6raex.dll, fx6raex.exe,
fxzddmif.dll, fxzdhb32.dll, fxzpmc3.dll, fxzadcmn.dll, fxzarl32.dll,
fxz430a3.dll, fxlzjnie.dll, fxlznie1.dll, fx6rae.cfg, fx6rae.tbl,
fx6rae.cnt, fx6rae.xrs, fx6rae.cdd, fx6rbe.ddd, fx6rce.ddd, fx6rde.ddd,
fx6ree.ddd, fx6rfe.ddd.
EVENT - APPLICATION
--------------------------------------------------------------------------------------------------
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/02/2007 1:15:16 PM
Event time (UTC): 8/02/2007 3:15:16 AM
Event ID: 4ae3a3b1b39c4ff1b5734af3590eb19e
Event sequence: 105
Event occurrence: 6
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/BatchPrint-1-128153695175334014
Trust level: Full
Application Virtual Path: /BatchPrint
Application Path: C:\Data\Reports\Web\BatchPrint\
Machine name: DELL-29
Process information:
Process ID: 3424
Process name: aspnet_wp.exe
Account name: DELL-29\ASPNET
Exception information:
Exception type: InvalidPrinterException
Exception message: Settings to access printer '\\server\printer' are not
valid.
Request information:
Request URL: http://dell-29/batchprint/test.aspx
Request path: /batchprint/test.aspx
User host address: 192.168.1.17
User: domain\user
Is authenticated: True
Authentication Type: Negotiate
Thread account name: DELL-29\ASPNET
Thread information:
Thread ID: 5
Thread account name: DELL-29\ASPNET
Is impersonating: False
Stack trace:
at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal()
at System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings
pageSettings)
at System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument
document, PrintEventArgs e)
at
System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument
document, PrintEventArgs e)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at PrintingExample.Print() in
c:\Data\Reports\Web\BatchPrint\Test.aspx.cs:line 45
at Test.Page_Load(Object sender, EventArgs e) in
c:\Data\Reports\Web\BatchPrint\Test.aspx.cs:line 20
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o,
Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,
EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)