Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF EO.Pdf.HtmlToPdfException: Convertion failed. Failed to initialize conversion Options
Ruben Barajas
Posted: Thursday, October 25, 2012 2:00:23 PM
Rank: Newbie
Groups: Member

Joined: 10/25/2012
Posts: 2
Hi I´m testing EO.PDF for a website, I already have EO.WEB license, everything in Development Server works fine, but in TEST server I´m having problems:

EO.Pdf.HtmlToPdfException: Convertion failed.
Failed to initialize conversion (1). ---> EO.Pdf.Internal.k1: Failed to initialize conversion (1). at EO.Pdf.Internal.lo.a(lo A_0, a A_1) at EO.Pdf.Internal.lo.a(hi A_0, Boolean A_1) at EO.Pdf.Internal.lo.a(hi A_0) --- End of inner exception stack trace --- at EO.Pdf.Internal.lo.a(hi A_0) 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 ASP.admin_cronlog_aspx.Page_Load(Object sender, EventArgs e)

I´ve tried to install EOPDFSP.exe, but I´v received the following error:
Installing EO.Pdf Service (EOPDFSP)...Installing assembly 'D:\DANASIDownload\EOPDFSP\EOPDFSP.exe'.
Affected parameters are:
assemblypath = D:\DANASIDownload\EOPDFSP\EOPDFSP.exe
logfile = D:\DANASIDownload\EOPDFSP\EOPDFSP.InstallLog
Installing service EO.Pdf Service...
Creating EventLog source EO.Pdf Service in log Application...
See the contents of the log file for the D:\DANASIDownload\EOPDFSP\EOPDFSP.exe assembly's progress.
The file is located at D:\DANASIDownload\EOPDFSP\EOPDFSP.InstallLog.
Rolling back assembly 'D:\DANASIDownload\EOPDFSP\EOPDFSP.exe'.
Affected parameters are:
logtoconsole =
assemblypath = D:\DANASIDownload\EOPDFSP\EOPDFSP.exe
logfile = D:\DANASIDownload\EOPDFSP\EOPDFSP.InstallLog
Restoring event log to previous state for source EO.Pdf Service.
System.Security.SecurityException: Requested registry access is not allowed.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)
at System.Diagnostics.EventLogInstaller.Install(IDictionary stateSaver)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.ServiceProcess.ServiceInstaller.Install(IDictionary stateSaver)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState)
at EO.Pdf.Internal.i1.a(Boolean A_0)
The Zone of the assembly that failed was:
MyComputer

I know for reading other topics in the forum this issue belongs to Permissions and security, but, can you be more specific about the permissions I´ve to grant? I´ve grant full control to system32 to ASPNET and IUSR_ users.

More technical data:
Development server: Windows Server 2003, ASP.NET, framework 2.0, Visual Studio 2005
Test Server: Windows Server 2000.
eo_support
Posted: Thursday, October 25, 2012 2:16:03 PM
Rank: Administration
Groups: Administration

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

Yes. This is a permission issue. We need full trust on .NET level to pass .NET CAS, and we also need sufficient permission on Windows level in order to access certain system resources and API calls. We do not have a specific list of Windows permissions we require as that can change, so you will want to check the stack trace and the error message. For example, in your case the EOPDFSP.exe tells you very clear that you do not have registry access permission (since installing a service needs to write into the registry, and that part is not even our code). For the "Failed to initialize conversion" error, you can check your event log and that should give you more detailed information.

It may not be a good idea for you to try to restrict Windows permission up front on the converter as it requires A LOT OF permissions. For example, it needs permission to access the system folder; It needs permission to access network resources (in order to load data from web server), it needs permission to read system font data, etc. It will be easier if you try to grant a high privilege user to get it working first, then try to deny that user certain permissions (for example, deny read to certain folder if you are concern about) to lock it down.

And finally, permission for two different users may be involved. One is the user that starts the process, another is the user context of the current thread. These two users can be different.

Thanks!
Ruben Barajas
Posted: Thursday, October 25, 2012 3:55:34 PM
Rank: Newbie
Groups: Member

Joined: 10/25/2012
Posts: 2
Thank you, I finally choose to try to run it in other test server, with 2003, and it runs perfectly at the first time.
eo_support
Posted: Thursday, October 25, 2012 3:59:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Great. Glad to see that you got it working. Sometimes permission issues are very hard to troubleshoot. ; )


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.