Hi,
We are using Amyuni PDF Converter version 4.5.3.8 through a web service under IIS running on Windows 2012 Server 64 bit. Our application pool has .NET version 4.0 and is enabled for 32-bit applications. We have done all the necessary setup needed to run under 64 bit OS (NUL: local port and disable advanced printing features). Sometimes we receive the error "System.ComponentModel.Win32Exception (0x80004005): The device is not ready". For the same document sent to the printer, sometimes could work, sometimes could get the error.
We are using an instance of CDIntfControl from CDIntfNet.dll, v4.5.4.0. To print documents to the printer we're using an instance of System.Drawing.Printing.PrintDocument.
Our code is something like this:
//////////////////////////////
Print()
{
...
PrintDocument.BeginPrint += new System.Drawing.Printing.PrintEventHandler(PrintDocument_BeginPrint);
PrintDocument.EndPrint += new System.Drawing.Printing.PrintEventHandler(PrintDocument_EndPrint);
PrintDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(PrintDocument_PrintPage);
PrintDocument.QueryPageSettings += new QueryPageSettingsEventHandler(PrintDocument_QueryPageSettings);
try
{
...
CDIntfControl.EnablePrinter();
PrintDocument.Print();
}
finally
{
PrintDocument.QueryPageSettings -= new QueryPageSettingsEventHandler(PrintDocument_QueryPageSettings);
PrintDocument.PrintPage -= new System.Drawing.Printing.PrintPageEventHandler(PrintDocument_PrintPage);
PrintDocument.EndPrint -= new System.Drawing.Printing.PrintEventHandler(PrintDocument_EndPrint);
PrintDocument.BeginPrint -= new System.Drawing.Printing.PrintEventHandler(PrintDocument_BeginPrint);
}
}
PrintDocument_BeginPrint()
{
...
CDIntfControl.EnablePrinter();
}
PrintDocument_QueryPageSettings()
{
...
}
//////////////////////////////
For some unknown reasons, sometimes, the printer job hangs between PrintDocument_BeginPrint() and PrintDocument_QueryPageSettings(), so that the time-out exception is raised.
This error appears only on Win2012. If the call to CDIntfControl.EnablePrinter() is removed from PrintDocument_BeginPrint(), then the error appears more often.
Are you aware of anything that can cause this sporadic timeout behavior? Is there any updates for the version we are using?
Thanks,
Mihai
PDF Converter 4.5 on Windows 2012 R2
Re: PDF Converter 4.5 on Windows 2012 R2
Hello,
Unfortunately I’m not sure I will be able to assist you much.
It appears that you are using a beta version of our Amyuni PDF Converter and these DLLs\Versions are not supported in production environment.
All odd numbered DLLs we release are fully tested versions. All even numbered DLLs are developer\beta builds that are sent to customers to test specific issues.
At this point I suggest that you consider upgrading to our current v5.5 version of the Amyuni PDF Converter which is Microsoft certified to windows 2012.
Thanks
Unfortunately I’m not sure I will be able to assist you much.
It appears that you are using a beta version of our Amyuni PDF Converter and these DLLs\Versions are not supported in production environment.
All odd numbered DLLs we release are fully tested versions. All even numbered DLLs are developer\beta builds that are sent to customers to test specific issues.
At this point I suggest that you consider upgrading to our current v5.5 version of the Amyuni PDF Converter which is Microsoft certified to windows 2012.
Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite