|
Rank: Newbie Groups: Member
Joined: 2/17/2012 Posts: 6
|
We are using EO.PDF to export a page in one of our legacy web form apps
The export works fine when using forms authentication, but when we switch to windows authentication the images within the export do not render. Can you shed any light on what exactly happens when I call RenderAsPDF on a ASPXToPDF control? Does it reload the page behind the scenes, if so how does it handle windows authentication?
This is the export code:
EO.Pdf.HtmlToPdf.Options.PageSize = new System.Drawing.SizeF(11F, 8.5F);
ASPXToPDF1.RenderAsPDF("export.pdf"); ASPXToPDF1.AfterRender += new EventHandler(ASPXToPDF1_AfterRender);
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This is normal. You may want to support both authentication mechanisms. The reason is EO.Pdf runs under your IIS account, so for Windows authentication, you are actually authenticating with that account instead of the client account your browser use. You can also try to enable IIS impersonation and see if that resolves the issue for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/17/2012 Posts: 6
|
Thanks for the reply, I'm testing this on my local machine and the app pool is running as me (local admin). So both the site and app pool are running as the same user and can't get it to work. I've tried impersonating as you suggested but it produces the same result.
Any other suggestions?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
I can't think of anything else. We will look into it and see if we can reproduce the problem here. You may also want to check if you are already on the latest build. If not, give the latest build a try and see if it works for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/17/2012 Posts: 6
|
thats a good point actually, we're currently on build 3.0.104.2, I'll check for an updated version now.
|
|
Rank: Newbie Groups: Member
Joined: 2/17/2012 Posts: 6
|
Ok so I've updated to the latest version, I've tried adding the package via nuget and installing the EO total package and can't get it working
I keep receiving the error 'Could not load type 'EO.Internal.a1v' from EO.Base. Any ideas?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Do you have the stack trace and the inner exception message?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/17/2012 Posts: 6
|
inner exception:
{"Could not load type 'EO.Internal.a1v' from assembly 'EO.Base, Version=16.0.68.0, Culture=neutral, PublicKeyToken=e92353a6bf73fffc'.":"EO.Internal.a1v"}
Stack trace:
at EO.Pdf.Runtime.AddLicense(String license) at MyProject.print.Export_Clicked(Object sender, EventArgs e) in [filepath]:line 94 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, We are not able to reproduce this problem. Can you try to isolate the problem into a test project and send the test project to us? See here for more information on how to send test project to us: http://www.essentialobjects.com/forum/test_project.aspxOnce we have that we will investigate further. Thanks!
|
|