While trying to print to a locally installed printer on the server from asp.net i get the following error in the event log
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2
Faulting module name: hpc5r5r1.dll, version: 0.3.1537.66, time stamp: 0x47f652b8
Exception code: 0xc0000005
Fault offset: 0x000000000001c851
Faulting process id: 0xadc
Faulting application start time: 0x01cd7fdc78cefbbd
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\system32\spool\DRIVERS\x64\3\hpc5r5r1.dll
Report Id: b949f653-ebcf-11e1-8702-001ec9d7f47d
it restarts 5 times, then the whole iis application pool shuts down
I removed all printer drivers, reintalled everything again, but still happens
Aspose.Words.Document _doc;
//all code to create the doc
System.Drawing.Printing.PrinterSettings set = new System.Drawing.Printing.PrinterSettings();
set.Copies = Copies;
if (Landscape > -1)
set.DefaultPageSettings.Landscape = (Landscape == 0 ? false : true) ;
set.PrinterName = PrinterName;
_doc.Print(set);
it crashes at the last line
It does not crash on my development machine, only on the staging server running win server 2008 64bit iis