Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF for .NET Options
Andy
Posted: Wednesday, April 27, 2016 6:51:46 AM
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);



eo_support
Posted: Wednesday, April 27, 2016 10:48:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
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!
Andy
Posted: Wednesday, April 27, 2016 10:58:35 AM
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?
eo_support
Posted: Wednesday, April 27, 2016 11:10:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
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!
Andy
Posted: Wednesday, April 27, 2016 11:52:00 AM
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.
Andy
Posted: Thursday, April 28, 2016 5:33:30 AM
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?
eo_support
Posted: Thursday, April 28, 2016 10:44:04 AM
Rank: Administration
Groups: Administration

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

Do you have the stack trace and the inner exception message?

Thanks!
Andy
Posted: Friday, April 29, 2016 4:16:43 AM
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)

eo_support
Posted: Friday, April 29, 2016 9:56:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
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.aspx

Once we have that we will investigate further.

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.