Welcome Guest Search | Active Topics | Sign In | Register

ASPX to PDF timeout error Options
Service Group
Posted: Friday, November 18, 2011 5:22:43 PM
Rank: Newbie
Groups: Member

Joined: 11/18/2011
Posts: 1
I downloaded the trial version to see if this product would work for us, & it worked great. I told my boss & she bought it, so I added the license info & tested fine. Now an hour later, I get an error about 50% of the time. I checked the forum, but only see this problem when users have many images. We have no images on the PDF.

Thanks

=============================
Operation times out

Stack Trace:


[Exception: Operation times out.]
EO.Pdf.Internal.kh.c(Byte[] A_0, Int32 A_1) +176
EO.Pdf.Internal.kh.d(Byte[] A_0, Int32 A_1) +84
EO.Pdf.Internal.km.a(String A_0, Boolean A_1, String A_2) +328
EO.Pdf.Internal.km.a() +136

[HtmlToPdfException: Convertion failed. Operation times out.]
EO.Pdf.HtmlToPdfException.b(Exception A_0) +65
EO.Pdf.Internal.km.a() +1075
EO.Pdf.Internal.km.i() +21
EO.Pdf.HtmlToPdf.a(km A_0) +37
EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) +46
EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) +7

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +251
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
EO.Web.Internal.db.a(String A_0, Object A_1) +78...


eo_support
Posted: Friday, November 18, 2011 5:34:51 PM
Rank: Administration
Groups: Administration

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

The problem can be triggered by any "external reference", not just by images. For example, if your page has an image tag, then the converter will try to pull that image; If your page has an iframe tag, then the converter will try to pull that iframe's src Url; If your page uses <link> to reference external CSS files (which is quite common), then the converter will try to pull those CSS files, etc. These image files, iframe page, CSS files are not a part of the original HTML file thus the converter needs to send a separate request to your server to fetch them. Most of the time a time out error is caused by a dead lock while retrieving these files.

The following thread covered the two common situations that can cause timeout error (even though the discussion is about image but the cause is the same):

http://www.essentialobjects.com/forum/postst6178_ASPXtoPDF-Timeout-when-loading-dynamic-images.aspx

The two situations are:
1. Your server configuration error (usually DNS error). This can be verified by checking whether the same page loads locally on the server;
2. Form authentication deadlock. This can be resolved by setting AutoFormsAuthentication to false;

If neither resolves the problem, then you can try to gradually comment out code/HTML block from your page to see if you can identify what triggered the problem. We can then go from there.

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.