Welcome Guest Search | Active Topics | Sign In | Register

Access is denied error when converting html to pdf Options
ricardo
Posted: Monday, October 10, 2011 5:51:20 AM
Rank: Member
Groups: Member

Joined: 10/10/2011
Posts: 19
Hi!

I'm currently assessing the viability of using EO.pdf in a project when for a while everything went smoothly. The problem started when I moved the sample code from my dev machine (win xp 32-bit + IIS development server of visual studio 2010) to the dev server (win 2008 64-bit + IIS 7.5) where I'm getting a Access is denied error:

Exception Details: System.ComponentModel.Win32Exception: Access is denied

Stack Trace:

[Win32Exception (0x80004005): Access is denied]
System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) +6177504
System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) +421
System.Diagnostics.Process.WaitForExit(Int32 milliseconds) +58
EO.Pdf.Internal.j7.a(Byte[] A_0, Int32 A_1) +217
EO.Pdf.Internal.j7.b(Byte[] A_0, Int32 A_1) +457
EO.Pdf.Internal.j7.c(Byte[] A_0, Int32 A_1) +188
EO.Pdf.Internal.kc.a(String A_0, Boolean A_1, String A_2) +271
EO.Pdf.Internal.kc.h() +346

[HtmlToPdfException: Convertion failed. Access is denied]
ComunsNET.EmitirPdfPagamento.ProcessRequest(HttpContext context) in D:\Projectos\ADJ3\ComunsNET\EmitirPdfPagamento.ashx.cs:287
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Any idea why this is happening? Does it have anything to do with the server being 64-bit? I enabled 32-bit assembly support in the IIS so that shouldn't be a problem...

Thanks for you time,

Ricardo Mendes
ricardo
Posted: Monday, October 10, 2011 6:23:47 AM
Rank: Member
Groups: Member

Joined: 10/10/2011
Posts: 19
Just updated from 3.0.75 to 3.0.76 but same happens :(
eo_support
Posted: Monday, October 10, 2011 8:15:47 AM
Rank: Administration
Groups: Administration

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

Thank you for the information. We are aware of this problem but we are still investigating it. We will reply again as soon as we have an update.

Thanks!
ricardo
Posted: Monday, October 10, 2011 9:48:43 AM
Rank: Member
Groups: Member

Joined: 10/10/2011
Posts: 19
Thanks for the reply :)

After digging a bit I found what was causing it. In my web.config I have the following lines:

<identity impersonate="true"/>
<authorization>
<deny users="?"/>
</authorization>

If I take those out it starts working. It's weird because the same web.config is used in my production pc but it only fails in the windows 2008 server. Unfortunately I really need to use impersonation so I'm looking forward for a fix :)

Thanks for your time
eo_support
Posted: Monday, October 10, 2011 9:58:49 AM
Rank: Administration
Groups: Administration

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

Thanks for the additional info. We are still researching this problem and will post again as soon as we find anything.

Thanks!
eo_support
Posted: Thursday, October 13, 2011 6:24:25 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that supports impersonation. Please see your private message for the download location.

The new build requires you to install a service by running "EOPDFSP.exe /i". Once a service is installed and running, EO.Pdf HTML to PDF converter would call the service to perform the actual conversion. Without the service everything works the same as the old build.

Thanks!
ricardo
Posted: Thursday, October 13, 2011 6:26:44 PM
Rank: Member
Groups: Member

Joined: 10/10/2011
Posts: 19
Thanks! Tomorrow I'll try it and then post here how it went :)


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.