Rank: Newbie Groups: Member
Joined: 11/5/2014 Posts: 3
|
I have been unable to successfully generate a pdf on a hosted web server. When running locally I have no problems at all, but I've tried with two different web hosting services and have not been able to generate a pdf.
Both hosts support full trust and trust level is specified in the web.config. EO.Base.dll and EO.Pdf are copied locally and on the server. I'm using version 15.2.65.0. It was generating Conversion failed. Operation timed out exceptions before upgrading and now the following is the stack trace:
Conversion failed. Child process not ready. nWaitResult = 258 at EO.Internal.aip.a(aa4 A_0, a4i A_1) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at <Internal Code> Child process not ready. nWaitResult = 258 at EO.Internal.jk.a(String A_0, Boolean A_1) at EO.Internal.jk.a(IntPtr A_0) at EO.Internal.jk.f.a(IntPtr A_0) at EO.Internal.jk.f.b() at EO.Internal.jk.f.d() at EO.Internal.jk.j() at EO.Internal.jk.a(String[] A_0, String A_1, String A_2, String A_3, String A_4) at EO.Internal.g1.a(String A_0, String A_1) at EO.Internal.aip.e() at EO.Internal.aip..ctor() at EO.Internal.aip.a(aip A_0, List`1 A_1) at EO.Internal.aip.a(aa4 A_0, Boolean A_1, a4i A_2) at EO.Internal.aip.a(aa4 A_0, a4i A_1)
I attempted to use EO.Pdf.Runtime.Exception event to see if I could obtain logs, but the event is not happening.
Please advise.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Does this happen all the time or only sometimes?
Thanks!
|
Rank: Newbie Groups: Member
Joined: 11/5/2014 Posts: 3
|
It works now on one host, but not another. I made some changes to remove it from an async call running inside a Task.Run in addition to updating to the most recent version and it now runs successfully on the host used for a testing environment.
I have not been able to successfully convert on the other hosting service, but it appears to be a combination of errors: Conversion failed. ProcessLauncher failed:System.ArgumentException: Process with an Id of 1195464 is not running. at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName) at System.Diagnostics.Process.GetProcessById(Int32 processId) at EO.Internal.jk.a(String[] A_0, String A_1, String A_2, String A_3, String A_4) at EO.Internal.aip.a(aa4 A_0, a4i A_1) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at <Internal Code> ProcessLauncher failed:System.ArgumentException: Process with an Id of 1195464 is not running. at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName) at System.Diagnostics.Process.GetProcessById(Int32 processId) at EO.Internal.jk.a(String[] A_0, String A_1, String A_2, String A_3, String A_4) at EO.Internal.jk.a(String A_0, Boolean A_1) at EO.Internal.jk.a(String[] A_0, String A_1, String A_2, String A_3, String A_4) at EO.Internal.g1.a(String A_0, String A_1) at EO.Internal.aip.e() at EO.Internal.aip..ctor() at EO.Internal.aip.a(aip A_0, List`1 A_1) at EO.Internal.aip.a(aa4 A_0, Boolean A_1, a4i A_2) at EO.Internal.aip.a(aa4 A_0, a4i A_1)
Conversion failed. Child process not ready. nWaitResult = 1 at EO.Internal.aip.a(aa4 A_0, a4i A_1) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at <Internal Code> Child process not ready. nWaitResult = 1 at EO.Internal.jk.a(String A_0, Boolean A_1) at EO.Internal.jk.a(IntPtr A_0) at EO.Internal.jk.a(String[] A_0, String A_1, String A_2, String A_3, String A_4) at EO.Internal.g1.a(String A_0, String A_1) at EO.Internal.aip.e() at EO.Internal.aip..ctor() at EO.Internal.aip.a(aip A_0, List`1 A_1) at EO.Internal.aip.a(aa4 A_0, Boolean A_1, a4i A_2) at EO.Internal.aip.a(aa4 A_0, a4i A_1)
The operation has timed out. at EO.Internal.aip.a(ak8 A_0) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at <Internal Code>
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
EO.Pdf starts child process through rundll32.exe at runtime. The error you received indicates that the rundll32.exe child process either crashed or was killed immediately after launch. The most common reason for this is some Anti-Virus program incorrectly flag this as virus and killed the process on start. So if you have such program installed, you may want to temporarily disable it and see what happens. Also you can check your event viewer to see if you can find anything there.
Thanks!
|