Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf Conversion to PDF failed - Conversion failed. The operation has timed out. Options
Anu
Posted: Wednesday, February 18, 2015 10:41:53 AM
Rank: Newbie
Groups: Member

Joined: 6/24/2014
Posts: 3
Hi,

I am getting the below error when trying to convert HTML to PDF. Any pointers what could be the error.

Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 18/02/2015 13:52:46
Event time (UTC): 18/02/2015 13:52:46
Event ID: ffe0b4cfec21458dbc02035905635549
Event sequence: 438
Event occurrence: 1
Event detail code: 0


Process information:
Process ID: 2200
Process name: w3wp.exe
Account name: IIS APPPOOL\DefaultAppPool

Exception information:
Exception type: HtmlToPdfException
Exception message: Conversion failed. The operation has timed out.
at EO.Pdf.Internal.ma.a(afp 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, PdfDocument doc)

The operation has timed out.
at EO.Pdf.Internal.ma.a(apq A_0)
at EO.Pdf.Internal.ma.a(ma A_0, apq A_1)
at EO.Pdf.Internal.ma.a(afp A_0, Boolean A_1)
at EO.Pdf.Internal.ma.a(afp A_0)



Request information:
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\DefaultAppPool

Thread information:
Thread ID: 21
Thread account name: IIS APPPOOL\DefaultAppPool
Is impersonating: False
Stack trace: at EO.Pdf.Internal.ma.a(afp 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, PdfDocument doc)


Custom event details:

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 4.0.30319.0" />
<EventID Qualifiers="32768">1309</EventID>
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-02-18T13:52:46.000000000Z" />
<EventRecordID>2789</EventRecordID>
<Security />
</System>
<EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>18/02/2015 13:52:46</Data>
<Data>18/02/2015 13:52:46</Data>
<Data>ffe0b4cfec21458dbc02035905635549</Data>
<Data>438</Data>
<Data>1</Data>
<Data>0</Data>
<Data>/LM/W3SVC/1/ROOT/ibank-1-130687328047080408</Data>
<Data>Full</Data>
<Data>/ibank</Data>

</Data>
<Data>2200</Data>
<Data>w3wp.exe</Data>
<Data>IIS APPPOOL\DefaultAppPool</Data>
<Data>HtmlToPdfException</Data>
<Data>Conversion failed. The operation has timed out.
at EO.Pdf.Internal.ma.a(afp 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, PdfDocument doc)

The operation has timed out.
at EO.Pdf.Internal.ma.a(apq A_0)
at EO.Pdf.Internal.ma.a(ma A_0, apq A_1)
at EO.Pdf.Internal.ma.a(afp A_0, Boolean A_1)
at EO.Pdf.Internal.ma.a(afp A_0)

</Data>

<Data>False</Data>
<Data>
</Data>
<Data>IIS APPPOOL\DefaultAppPool</Data>
<Data>21</Data>
<Data>IIS APPPOOL\DefaultAppPool</Data>
<Data>False</Data>
<Data> at EO.Pdf.Internal.ma.a(afp 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, PdfDocument doc)
</Data>
</EventData>
</Event>
eo_support
Posted: Wednesday, February 18, 2015 12:59:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This can be completely normal or can indicate a problem. If you are only seeing this sporadically, then it might be a normal timeout (for example, the input HTML is too large thus the conversion takes too long, or the server is temporarily overloaded). If your HTML string is small and you get this problem often, then it might be something else. If that is the case please let us know and we will look into it to see what we can find.

Thanks!
Anu
Posted: Thursday, February 19, 2015 4:03:51 AM
Rank: Newbie
Groups: Member

Joined: 6/24/2014
Posts: 3
Hi,

I have tried "HELLO THERE!" as HTML string be converted to PDF. Even this results in the same error. This happens on every instance.

Also, to add some information about the server, we have a SSL certificate installed on the server. The website is using asp.NET 4.5.

Could this be any issue. Any pointers of how this issue can be resolved will help.

Thanks!
eo_support
Posted: Thursday, February 19, 2015 9:36:36 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Please check whether you use manual trigger:

http://www.essentialobjects.com/doc/4/htmltopdf/eo_js.aspx

When you use manual trigger but did not call eopdf.convert() in your script, you will get time out error every time.

Thanks!
Anu
Posted: Thursday, February 19, 2015 10:13:35 AM
Rank: Newbie
Groups: Member

Joined: 6/24/2014
Posts: 3
I have checked and I am not using manual trigger. It returns backs the same error.

My code works perfectly fine on the development and test server. While it throws out this error on the LIVE server, where the website also uses a SSL certificate.
eo_support
Posted: Thursday, February 19, 2015 10:25:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

In that case it is not possible to get time out error if you just do ConvertHtml("HELLO THERE!") since this would not rely on anything else at all. You are converting a single piece of HTML that does not have anything to do with your server, let alone to have anything with your server's SSL certificate. Please re-run your test case and let us know exactly what happened.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.