Cannot print to network printer in IIS6

T

Tessa

We're using PrintDocument.Print method in a web application to print (ie not
on the client) (on Windows 2003)

Get InvalidPrinterException:
System.Drawing.Printing.InvalidPrinterException: Tried to access printer
'\\SAM\BrotherH' with invalid settings. 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(PrintDocum
ent document, PrintEventArgs e) at
System.Drawing.Printing.PrintController.Print(PrintDocument document) at
System.Drawing.Printing.PrintDocument.Print() at
PrintingGDI.WebForm1.Button1_Click(Object sender, EventArgs e)

We impersonate a windows user with enough privelages to print on network
printers.

Code works on Windows 2000 Server, and even to local printer on Windows
2003.

Any ideas what might be different when asp.net runs under II6 on 2003 Server
?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top