I am getting an error attempting to convert my webpage to PDF:
Failed to initialize conversion (1).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: EO.Pdf.Internal.k4: Failed to initialize conversion (1).
This is the stack trace:
[k4: Failed to initialize conversion (1).]
EO.Pdf.Internal.lr.a(lr A_0, a A_1) +213
EO.Pdf.Internal.lr.a(hk A_0, Boolean A_1) +703
EO.Pdf.Internal.lr.a(hk A_0) +608
[HtmlToPdfException: Convertion failed. Failed to initialize conversion (1).]
EO.Pdf.Internal.lr.a(hk A_0) +743
EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) +133
EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) +53
EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) +7
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +92
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +108
EO.Web.Internal.dg.a(String A_0, Object A_1) +78
EO.Web.ASPXToPDF.a(String A_0, Stream A_1) +62
EO.Web.Internal.ms.a(b[] A_0) +52
EO.Web.Internal.a.Close() +28
System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +188
System.Web.HttpResponse.FilterOutput() +104
System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +49
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
We are using version 4.0.60.2 of EO.pdf.
The waiver is saved to a stream:
Code: C#
EO.Pdf.HtmlToPdfResult result = (EO.Pdf.HtmlToPdfResult)ASPXToPDF1.Result;
System.IO.Stream PDF = new System.IO.MemoryStream();
result.PdfDocument.Save(PDF);
The error seems to be happening only on a Microsoft Azure managed server.
Any help would be greatly appreciated.
Thank you