Welcome Guest Search | Active Topics | Sign In | Register

Failed to initialize conversion Options
anyei
Posted: Thursday, October 27, 2011 1:17:10 PM
Rank: Member
Groups: Member

Joined: 10/27/2011
Posts: 10
it's a f@#ing problem, see this is a prod server :S, im not allow to give access or whatever.....

if helps.. below the error



Server Error in '/myApp' Application.

Failed to initialize conversion.

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: System.Exception: Failed to initialize conversion.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: Failed to initialize conversion.]
EO.Pdf.Internal.kg.c(Byte[] A_0, Int32 A_1) +694
EO.Pdf.Internal.kg.d(Byte[] A_0, Int32 A_1) +84
EO.Pdf.Internal.kl.a(String A_0, Boolean A_1, String A_2) +308
EO.Pdf.Internal.kl.a() +139

[HtmlToPdfException: Convertion failed. Failed to initialize conversion.]
EO.Pdf.HtmlToPdfException.b(Exception A_0) +65
EO.Pdf.Internal.kl.a() +1007
EO.Pdf.Internal.kl.i() +21
EO.Pdf.HtmlToPdf.a(kl 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.Web.ASPXToPDF.a(Object A_0, String A_1, String A_2) +1626
EO.Web.Internal.mb.a(HttpResponse A_0, String A_1) +168
EO.Web.Internal.is.a(HtmlTextWriter A_0, Control A_1) +224
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
anyei
Posted: Thursday, October 27, 2011 1:21:38 PM
Rank: Member
Groups: Member

Joined: 10/27/2011
Posts: 10
The "calling code" :

If (Request.QueryString("r") = "pdf") Then
ASPXToPDF1.RenderAsPDF(Server.UrlDecode(Request.QueryString("fn")))
End If
eo_support
Posted: Thursday, October 27, 2011 1:25:55 PM
Rank: Administration
Groups: Administration

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

There isn't a lot we can do if you cannot give us access. One thing you can try is to install the EOPDFSP service:

http://doc.essentialobjects.com/library/4/htmltopdf/eopdfsp.aspx

That should solve a lot of problem due to insufficient permissions (many server administrators will try to lock down permissions and that may break us because we need to make a lot of API calls).

If you cannot try that or that still does not work, then we will need to have access to your machine in order to investigate further.

Thanks!
anyei
Posted: Thursday, October 27, 2011 1:38:01 PM
Rank: Member
Groups: Member

Joined: 10/27/2011
Posts: 10
Thanks, i'll try that and let you know. Thank you very much for being patient with me :). Again, i'll post if any progress.
anyei
Posted: Thursday, October 27, 2011 10:48:55 PM
Rank: Member
Groups: Member

Joined: 10/27/2011
Posts: 10
Ok dude, look at this: i've tried to do what you told me and nothing, still the same error. One thing i did in order to make this work was change the application pool's identity (i was using Built-In-Account "ApplicationPoolIdentity") to "LocalSystem" and the error changed.... i hope this can be a good trace dude... i'm 100% sure that iis is the responsible of my problems...


Server Error in '/myApp' Application.

Access is denied

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: System.ComponentModel.Win32Exception: Access is denied

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Win32Exception (0x80004005): Access is denied]
System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) +6178128
System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) +421
System.Diagnostics.Process.get_HasExited() +81
EO.Pdf.Internal.kg.a(Byte[] A_0, Int32 A_1) +297
EO.Pdf.Internal.kg.b(Byte[] A_0, Int32 A_1) +612
EO.Pdf.Internal.kg.c(Byte[] A_0, Int32 A_1) +188
EO.Pdf.Internal.kg.d(Byte[] A_0, Int32 A_1) +84
EO.Pdf.Internal.kl.a(String A_0, Boolean A_1, String A_2) +308
EO.Pdf.Internal.kl.a() +139

[HtmlToPdfException: Convertion failed. Access is denied]
EO.Pdf.HtmlToPdfException.b(Exception A_0) +65
EO.Pdf.Internal.kl.a() +1007
EO.Pdf.Internal.kl.i() +21
EO.Pdf.HtmlToPdf.a(kl 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.Web.ASPXToPDF.a(Object A_0, String A_1, String A_2) +1626
EO.Web.Internal.mb.a(HttpResponse A_0, String A_1) +168
EO.Web.Internal.is.a(HtmlTextWriter A_0, Control A_1) +224
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
eo_support
Posted: Thursday, October 27, 2011 10:56:47 PM
Rank: Administration
Groups: Administration

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

That does not make sense. You should not hit that code if you have EOPDFSP up and running. The exact purpose of the service is to bypass this code path you are hitting. That code path does not work under certain security configurations (particularly when impersonation is enabled), that's why we have a separate service to bypass it.

Thanks
anyei
Posted: Saturday, October 29, 2011 3:43:45 PM
Rank: Member
Groups: Member

Joined: 10/27/2011
Posts: 10
I totally understand that... but that happened to me, pretty weird thing... did exactly as supposed with the service thou.... but anyway.... as i told you i've changed the application pool's identity (the user context that the application pool use to run), like you said if the impresonation is set to true then we will get some weird errors (basically permissions like)...


what i did was change application pool's identity to a user with admin rights in the machine. It's pretty cumbersome, but at the end its working.

Note: obviously i've turned impersonation off...

THANKS FOR YOUR ATTENTIONS, I REALLY THINK YOUR SUPPORT TEAM IS 1 AMONG 1 MILLION (FAST RESPONSE AND ALLWAYS PREPARED ). AGAIN, 1k THANKS
eo_support
Posted: Saturday, October 29, 2011 3:49:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Yeah. Windows permission is a very complicated matter. Glad that it’s finally working for you. : )

Thanks!
bigfienz
Posted: Friday, July 13, 2012 1:00:35 AM
Rank: Newbie
Groups: Member

Joined: 7/13/2012
Posts: 3
Hi,
I use ef pdf for convert html to pdf. In my local computer the program running as well, but when I upload to server, my program throw an error on log file

error message :

Exception has been thrown by the target of an invocation. ---> EO.Pdf.HtmlToPdfException: Convertion failed. Failed to initialize conversion. ---> System.Exception: Failed to initialize conversion.
at EO.Pdf.Internal.kl.b(Byte[] A_0, Int32 A_1)
at EO.Pdf.Internal.kl.c(Byte[] A_0, Int32 A_1)
at EO.Pdf.Internal.kq.a(String A_0, Boolean A_1, String A_2)
at EO.Pdf.Internal.kq.a()
--- End of inner exception stack trace ---
at EO.Pdf.HtmlToPdfException.b(Exception A_0)
at EO.Pdf.Internal.kq.a()
at EO.Pdf.Internal.kq.b()
at EO.Pdf.HtmlToPdf.a(kq A_0)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream)
at dokuku.sales.emailsender.handler.InvoiceEmailSentHandler.CreateEmailContentPdf(Guid invoiceId, String ownerId)
at dokuku.sales.emailsender.handler.InvoiceEmailSentHandler.Handle(SendInvoiceEmail message)


I use EO.Pdf.dll version 3.0.144.2
and I already install EOPDFSP as a service on my server, but not resolve my problem....

Please help me, and sorry for my bad english
eo_support
Posted: Friday, July 13, 2012 9:00:30 AM
Rank: Administration
Groups: Administration

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

Please check your Windows event viewer and see if you find any entries there.

Thanks
bigfienz
Posted: Friday, July 13, 2012 10:37:18 AM
Rank: Newbie
Groups: Member

Joined: 7/13/2012
Posts: 3
eo_support wrote:
Hi,

Please check your Windows event viewer and see if you find any entries there.

Thanks


OK thanx for reply...

I had saw on My Windows event viewer and I found the Error


The description for Event ID 0 from source EO Debug Message cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.


what that's mean? FYI.... I put EO htmltopdf on my consol host. and I using Nservice bus for the host... when the host run on console, it's running well but when I install the host as a service then I fount an error on log when the service working...(service started well....)

thanx for response :)
eo_support
Posted: Friday, July 13, 2012 10:42:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
bigfienz wrote:
The description for Event ID 0 from source EO Debug Message cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.


That's not the main message of that event log entry. The main error mesage should have an error code in it.

Thanks!
bigfienz
Posted: Friday, July 13, 2012 11:34:38 AM
Rank: Newbie
Groups: Member

Joined: 7/13/2012
Posts: 3
eo_support wrote:
bigfienz wrote:
The description for Event ID 0 from source EO Debug Message cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.


That's not the main message of that event log entry. The main error mesage should have an error code in it.

Thanks!


ok I see I will check it tomorrow...

I will post the progress...

thanks for response... :)


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.