Welcome Guest Search | Active Topics | Sign In | Register

Convertion failed. Failed to initialize conversion (1). Options
Sachse
Posted: Tuesday, January 13, 2015 8:46:29 AM
Rank: Newbie
Groups: Member

Joined: 1/13/2015
Posts: 2
I am receiving this error (Convertion failed. Failed to initialize conversion (1).), with this as the stack trace:

at EO.Pdf.Internal.me.a(afv A_0, ao4 A_1)
at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, String pdfFileName, HtmlToPdfOptions options)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, String pdfFileName)
at Smart.LoanTracker.Admin.WebServices.CreatePDFFromHTML(String DocumentType, String EntityType, Nullable`1 EntityId, String Entity2Type, Nullable`1 Entity2Id, String html, String HeaderInfo, String FooterInfo, Single DocWidth, Single DocHeight, Single TopMargin, Single LeftMargin, String UniqueIdentifier, String Description)

I am using Arvixe shared business class hosting. I have used this product on this server in the past, but, they continue to keep up with security updates. in this posting: http://www.essentialobjects.com/forum/postst8701_Fault-on-Windows-Server-2012R2-after-Windows-update-KB3000850.aspx you referred to that update breaking it with the latest version as the resolution.

I downloaded and updated the latest version today:
Currently EO.Pdf.dll version is: 6.0.28.2

Still receiving the same error. I have a very repeatable test case available, but, need this to be resolved ASAP. Can you offer any other support?

Thank you, very much... in advance.
eo_support
Posted: Tuesday, January 13, 2015 10:43:21 AM
Rank: Administration
Groups: Administration

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

The latest build should resolve KB3000850 issue for you. If it still does not work, you can check your event viewer and see if you can find any additional information there. Very often this is caused by insufficient permissions. At runtime, EO.Pdf needs to spawn child process through rundll32.exe. So if for some reason you do not have sufficient permission to read the system32 directory (thus not being able to "see" rundll32.exe) or does not have sufficient permission to create child process, then you can receive this error. In this case you should see additional entry in your event viewer --- unless EO.Pdf doesn't even have enough permission to write windows event log.

If event viewer does not reveal anything, we can take a look of your server if you can give us access to it. In that case we will need you to create a barebone test app on your server so that we will be able to perform tests with the test app.

Thanks!
Sachse
Posted: Tuesday, January 13, 2015 8:36:23 PM
Rank: Newbie
Groups: Member

Joined: 1/13/2015
Posts: 2
I do not have full access to this server as it is a shared environment. I have used this application in that environment in the past with no problem. Their support team said that it did not write to the event log -- however, i can write out any details from within the exception block in c#... will nothing there help?

Thank you for the reply... i hope there is some path toward success here.
eo_support
Posted: Wednesday, January 14, 2015 10:54:29 AM
Rank: Administration
Groups: Administration

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

The exception message won't help because that's not the real exception. The real exception is in the child process, not in your process. So there is no way you can catch it. We try to catch it in the child process and write to the event viewer --- if it has sufficient permission, then that should success and you should see the error. If that fails, in theory you should still see an error in the event log that indicates the child process has crashed.

Generally you will not be able to use EO.Pdf in a shared environment because EO.Pdf requires full trust, this usually means you can only use the product in a virtual server/dedicated server (it will work in a shared plan if your hosting company give your application full trust and sufficient permission to read system32 and start rundll32.exe but that is often a problem in a shared environment). As such you might want to consider moving to a virtual/dedicated server. If you can not do so, then we will need remote access in order to find out why.

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.