|
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
|
|
Rank: Member Groups: Member
Joined: 10/10/2011 Posts: 19
|
Just updated from 3.0.75 to 3.0.76 but same happens :(
|
|
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!
|
|
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
|
|
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!
|
|
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!
|
|
Rank: Member Groups: Member
Joined: 10/10/2011 Posts: 19
|
Thanks! Tomorrow I'll try it and then post here how it went :)
|
|