Re: Simple Printing Problem?



The stack trace is below. Why does it think that the thread is running under
network service when I checked and it is running under the impersonated user
account? Did the Thread.CurrentPrincipal change somehow?
Brian

Request information:

Request path: /batchprint/Execute.aspx

User host address: 192.168.1.40

User: domain\user

Is authenticated: True

Authentication Type: Negotiate

Thread account name: NT AUTHORITY\NETWORK SERVICE


Thread information:

Thread ID: 8

Thread account name: NT AUTHORITY\NETWORK SERVICE

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.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument
document, PrintEventArgs e)

at System.Drawing.Printing.PrintController.Print(PrintDocument document)

at System.Drawing.Printing.PrintDocument.Print()

at BatchPrintUtility.PrintReport.Print()

at BatchPrintUtility.PrintReport.RenderPrint(String Report, String
Parameters, Int32 Copies)

at Execute.PrintReportBatch(Object printer)

at Execute.Page_Load(Object sender, EventArgs e)


.