Welcome Guest Search | Active Topics | Sign In | Register

Request failed for HtmlToPdf.ConvertUrl all of a sudden Options
Destylio
Posted: Monday, July 20, 2015 9:44:59 AM
Rank: Newbie
Groups: Member

Joined: 7/20/2015
Posts: 2
My client's ASP.NET website has been using the EO.Pdf DLL to generate an aspx page and then convert it to a PDF for a long time. I moved the website to another server on a shared hosting package several months ago but the function to convert to a PDF still worked.

However I have noticed that a few days ago there are suddenly some errors coming through which are as follows:

Message:
Request failed.

Source:
EO.Pdf

Stack Trace:
at EO.Pdf.Internal.cf.b() at EO.Pdf.Internal.lt.f.a(hj A_0, cf& A_1) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, String pdfFileName, HtmlToPdfOptions options) at Main_Page.saveBtn_Click(Object sender, EventArgs e) 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) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.products_details_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Complete Error:
System.Security.SecurityException: Request failed. at EO.Pdf.Internal.cf.b() at EO.Pdf.Internal.lt.f.a(hj A_0, cf& A_1) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, String pdfFileName, HtmlToPdfOptions options) at Main_Page.saveBtn_Click(Object sender, EventArgs e) 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) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.products_details_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) The action that failed was: Demand The type of the first permission that failed was: System.Security.PermissionSet The Zone of the assembly that failed was: Internet


Nothing in the website has changed so I don't know why this error is suddenly appearing. I've searched online but can't find an answer to what this error message is relating to either.

Can someone please shed some light on this?

Thank you in advance.
eo_support
Posted: Monday, July 20, 2015 10:02:13 AM
Rank: Administration
Groups: Administration

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

There can be different reasons. One reason can be your hosting company changed something (such as permissions) so it now fails. Another reason can be Windows update. There was one Windows updates at the beginning of this year that broke EO.Pdf and we had to change our code to work around it.

I would recommend you to download the latest build from our download page and try that build. The new build has the fix for the Windows update issue as well as much more detailed internally logs. If the new build does not work, you can try to collect the log information and send the logs to us:

http://www.essentialobjects.com/doc/common/collect_logs.aspx

See here on how to send us test files/sample code:

http://www.essentialobjects.com/forum/test_project.aspx

Once we have the logs, we will look into it and see what we can find.

Thanks!
Destylio
Posted: Monday, July 20, 2015 10:29:46 AM
Rank: Newbie
Groups: Member

Joined: 7/20/2015
Posts: 2
Thanks very much for your help.

I will give this a try. If I download the latest build and use the EO.Pdf.dll file from that build, will it still work with my existing licence?
eo_support
Posted: Monday, July 20, 2015 10:40:03 AM
Rank: Administration
Groups: Administration

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

That will depends on when you purchased your license. We provide free one year upgrade after your purchase. So if you are still within one year, you will be able to use the new version with no additional cost. If you are already beyond one year, then you will need to renew your license first. You can find out details (such as whether you can receive the current version for free, or how much the renew cost will be if you can not get the current version, etc) by visiting your orders page, and then click the link in the "Subscription Status" column.

Thanks!
Destylio
Posted: Monday, July 20, 2015 3:30:12 PM
Rank: Newbie
Groups: Member

Joined: 10/17/2013
Posts: 2
Thank you. I am beyond one year and there is no link in the 'Subscription Status' column. It just says 'Not Available'. How can I find out how much it would be to renew?

I am hesitant to pay for the latest build 'just in case' it works with the problem I am having - it is likely not going to be cheap to renew and I have no guarantee that renewing will solve the problem.

Is there any way I can find the problem for definite without having to pay to renew?
eo_support
Posted: Monday, July 20, 2015 5:07:36 PM
Rank: Administration
Groups: Administration

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

Please revisit your orders page again. The upgrade path for your version was not set up properly. That is now fixed and you should be able to see the status and upgrade price.

You do not need to purchase the upgrade in order to verify whether the new version will resolve the issue for you. You can just download the new version and proceed without a license key. That way the product will run in trial mode. That should tell you whether it would resolve the issue for you.

When you purchase an upgrade, you are in fact renewing your subscription. So it is not just an upgrade to the current version, but also covers newer versions/builds into the future until your subscriptions expires.

Thanks!
Destylio
Posted: Wednesday, July 22, 2015 9:59:40 AM
Rank: Newbie
Groups: Member

Joined: 10/17/2013
Posts: 2
Hi,

Thanks for your further help.

I tried the upgrade but it didn't work. I have also since found out that the server the website is running on has recently downgraded the trust levels from full to a custom defined level around the medium level. Could this be the reason for the problem? Is there any way that I can continue to use it with this different trust level?
eo_support
Posted: Thursday, July 23, 2015 11:23:10 AM
Rank: Administration
Groups: Administration

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

If the server has down graded the trust level, then most likely that is the problem. EO.Pdf requires full trust to run because it needs to make numerous system API calls. So there is no way for EO.Pdf to work without full trust.

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.