Welcome Guest Search | Active Topics | Sign In | Register

Failed to initialize conversion (1) Options
Michael
Posted: Monday, February 24, 2014 5:11:08 PM
Rank: Newbie
Groups: Member

Joined: 3/25/2013
Posts: 8
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
eo_support
Posted: Monday, February 24, 2014 5:29:52 PM
Rank: Administration
Groups: Administration

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

This most likely is a permission issue. EO.Pdf requires full unmanaged permission to run. With the latest EO.Pdf, you can use it with Cloud Service(Web Role and Worker Role) and Virtual Machine, but it can not be used with Windows Azure Web Site.

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.