|
Rank: Newbie Groups: Member
Joined: 1/8/2013 Posts: 3
|
I am getting an exception with the message "Convertion failed. Unable to create worker thread" when trying to convert html to pdf on IIS 7.5 on Windows Server 2008 R2.
The same code is running in the development environment on IIS 7.5 on Windows 7. Both are 64 bit OSes.
EDIT: Both web applications are using .Net framework 2
The relevant stack trace: at EO.Pdf.Internal.lp.a(hi A_0) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream) at clsContract.createPDF(String pdfContent, Boolean isLandscape) at clsContract.createPDF(String pdfContent)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
This is usually a permission issue. Unfortunately our code did not log the exact error message. We can add the log for you to try it out and that should help you to get a more specific error message. Please let us know if you would like us to do that.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/8/2013 Posts: 3
|
Please do that. It will save us time.
Thanks for your help
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have posted a new build (please see your private message for the download location) that added additional information to the message. Please try that build and see what the message says. If the message is still the same "Unable to create worker thread" with no additional information, then its a simple time out that indicates that your server is overloaded. In that case you can wait and see if it recovers later, or you may need to recycle your IIS application (IIS supposes to auto-recycle, but in case that fails).
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/8/2013 Posts: 3
|
Hi, I have installed the new build and now the exception message is "Convertion failed. Unable to create worker thread.Not enough storage is available to process this command".
Which storage is this referring to? Is there any particular location where the component writes temporary data? The disk has 11GB free space.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
The error message is from MS and is in fact a bit misleading. The corresponding error code is ERROR_NOT_ENOUGH_MEMORY. This can be triggered by real memory shortage, or by GDI handle shortage. Do you get this error EVERY TIME or only after the server has been running for a while?
Thanks!
|
|