Welcome Guest Search | Active Topics | Sign In | Register

License Key for EO.Pdf 2016 not working on azure web roles Options
Automotive Global
Posted: Tuesday, June 14, 2016 8:03:47 PM
Rank: Newbie
Groups: Member

Joined: 2/24/2015
Posts: 4
Hi,

Order No: CP0L102W8W56

We have installed License Key for EO.Pdf 2016. Export to pdf works on our local machine. But it doesn't work when we publish the changes on Azure web roles.

Please find the error below:


Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 6/14/2016 7:49:20 AM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: RD0003FF482F0A
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 14/06/2016 7:49:20 AM
Event time (UTC): 14/06/2016 7:49:20 AM
Event ID: 7cf32c40fc5445939844b621f8853680
Event sequence: 43
Event occurrence: 2
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1273337584/ROOT-1-131103638466626389
Trust level: Full
Application Virtual Path: /
Application Path: E:\sitesroot\0\
Machine name: RD0003FF482F0A

Process information:
Process ID: 3904
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: HtmlToPdfException
Exception message: The request is canceled due to a server certificate error.
at EO.Internal.o1.a(adw A_0, String A_1, String A_2, String A_3, Int32 A_4, Int32 A_5, String A_6, Boolean A_7)
at EO.Pdf.HtmlToPdfSession.a(adw A_0, String A_1, String A_2, Int32 A_3, Int32 A_4, String A_5, Boolean A_6)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)



Request information:
Request URL: https://052b5216d8224266bbcbec4172e78ffa.cloudapp.net:443/aglogs/live/default.aspx?img=live
Request path: /aglogs/live/default.aspx
User host address: 119.63.217.56
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 25
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at EO.Internal.o1.a(adw A_0, String A_1, String A_2, String A_3, Int32 A_4, Int32 A_5, String A_6, Boolean A_7)
at EO.Pdf.HtmlToPdfSession.a(adw A_0, String A_1, String A_2, Int32 A_3, Int32 A_4, String A_5, Boolean A_6)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)


Custom event details: Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 4.0.30319.0" />
<EventID Qualifiers="32768">1309</EventID>
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-06-14T07:49:20.000000000Z" />
<EventRecordID>1320</EventRecordID>
<Channel>Application</Channel>
<Computer>RD0003FF482F0A</Computer>
<Security />
</System>
<EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>14/06/2016 7:49:20 AM</Data>
<Data>14/06/2016 7:49:20 AM</Data>
<Data>7cf32c40fc5445939844b621f8853680</Data>
<Data>43</Data>
<Data>2</Data>
<Data>0</Data>
<Data>/LM/W3SVC/1273337584/ROOT-1-131103638466626389</Data>
<Data>Full</Data>
<Data>/</Data>
<Data>E:\sitesroot\0\</Data>
<Data>RD0003FF482F0A</Data>
<Data>
</Data>
<Data>3904</Data>
<Data>w3wp.exe</Data>
<Data>NT AUTHORITY\NETWORK SERVICE</Data>
<Data>HtmlToPdfException</Data>
<Data>The request is canceled due to a server certificate error.
at EO.Internal.o1.a(adw A_0, String A_1, String A_2, String A_3, Int32 A_4, Int32 A_5, String A_6, Boolean A_7)
at EO.Pdf.HtmlToPdfSession.a(adw A_0, String A_1, String A_2, Int32 A_3, Int32 A_4, String A_5, Boolean A_6)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)

</Data>
<Data>https://052b5216d8224266bbcbec4172e78ffa.cloudapp.net:443/aglogs/live/default.aspx?img=live</Data>
<Data>/aglogs/live/default.aspx</Data>
<Data>119.63.217.56</Data>
<Data>
</Data>
<Data>False</Data>
<Data>
</Data>
<Data>NT AUTHORITY\NETWORK SERVICE</Data>
<Data>25</Data>
<Data>NT AUTHORITY\NETWORK SERVICE</Data>
<Data>False</Data>
<Data> at EO.Internal.o1.a(adw A_0, String A_1, String A_2, String A_3, Int32 A_4, Int32 A_5, String A_6, Boolean A_7)
at EO.Pdf.HtmlToPdfSession.a(adw A_0, String A_1, String A_2, Int32 A_3, Int32 A_4, String A_5, Boolean A_6)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)
</Data>
</EventData>
</Event>
eo_support
Posted: Wednesday, June 15, 2016 11:31:21 AM
Rank: Administration
Groups: Administration

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

Please try to set this property:

http://www.essentialobjects.com/doc/eo.pdf.htmltopdfoptions.certificateerror.aspx

Inside the handler you would call e.Continue to ignore the certificate error.

Thanks!
Automotive Global
Posted: Thursday, June 16, 2016 10:37:34 PM
Rank: Newbie
Groups: Member

Joined: 2/24/2015
Posts: 4
Hi,

Could you please let us know how to use this?
If you could provide a sample code in VB.NET that will be great.

Regards,
Anurag
eo_support
Posted: Friday, June 17, 2016 8:49:42 AM
Rank: Administration
Groups: Administration

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

The code will be something like this:

Call this before the conversion:

Code: Visual Basic.NET
'Set custom certificate error handler
HtmlToPdf.Options.CertificateError = AddressOf OnCertificateError


And the handler:

Code: Visual Basic.NET
Private Shared Sub OnCertificateError(sender As Object, e As EO.WebBrowser.CertificateErrorEventArgs)
    'Ignore the certificate error and continue
    e.Continue()
End Sub


Thanks!
James
Posted: Thursday, July 19, 2018 4:10:34 PM
Rank: Newbie
Groups: Member

Joined: 7/19/2018
Posts: 2
@eo_support - I am using EO.PDF with a file version of 16.0.78. I am now getting this error in one of my client's environment. Based on your comment, the solution is to provide a code fix, which i like to avoid. Can you please explain why this happens only on one environment and not on any others. I have been using this component for several years now and i don't remember anything like this have happened before.
eo_support
Posted: Thursday, July 19, 2018 4:20:15 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,070
James wrote:
@eo_support - I am using EO.PDF with a file version of 16.0.78. I am now getting this error in one of my client's environment. Based on your comment, the solution is to provide a code fix, which i like to avoid. Can you please explain why this happens only on one environment and not on any others. I have been using this component for several years now and i don't remember anything like this have happened before.


Hi,

This particular error has to do with certificate verification. There are many reasons that can cause certificate verification to fail ---- for example, you may not have installed the specific root trusted certificated on your system, and older version of Chromium browser engine has issue with certain certificates. Whatever the reason maybe, the code in the previous posts would instruct the browser engine to ignore such errors and continue with the SSL connection.

If you still have issues, you should consider updating to the latest version. That will eliminate the Chromium browser engine issue mentioned earlier, and it will also entitle you for additional tech support. We provide free tech support for one year only, so if your version is 16 and you have not updated, then the support period for you in fact has already expired.

Thanks!
James
Posted: Friday, July 20, 2018 11:43:53 AM
Rank: Newbie
Groups: Member

Joined: 7/19/2018
Posts: 2
eo_support wrote:
James wrote:
@eo_support - I am using EO.PDF with a file version of 16.0.78. I am now getting this error in one of my client's environment. Based on your comment, the solution is to provide a code fix, which i like to avoid. Can you please explain why this happens only on one environment and not on any others. I have been using this component for several years now and i don't remember anything like this have happened before.


Hi,

This particular error has to do with certificate verification. There are many reasons that can cause certificate verification to fail ---- for example, you may not have installed the specific root trusted certificated on your system, and older version of Chromium browser engine has issue with certain certificates. Whatever the reason maybe, the code in the previous posts would instruct the browser engine to ignore such errors and continue with the SSL connection.

If you still have issues, you should consider updating to the latest version. That will eliminate the Chromium browser engine issue mentioned earlier, and it will also entitle you for additional tech support. We provide free tech support for one year only, so if your version is 16 and you have not updated, then the support period for you in fact has already expired.

Thanks!


Thanks for your quick response. After checking with concerned people, i can conform that we do have an active/latest license for your latest product. We just have not updated yet. As a quick fix, instead of updating the library, we have decided to handle 'CertificateError' as you have recommended earlier, but i am not able to fine `CertificateError` in `HtmlToPdf.Options`. Has that been moved to some other namespace? if it is moved, a one line example of using that would be great! In case if you are interested, this is what i am using today

pdfOptions.NoScript = true;
pdfOptions.AllowLocalAccess = false;
pdfOptions.MaxLoadWaitTime = (int)TimeSpan.FromMinutes(1).TotalMilliseconds;
pdfOptions.NoCache = true;
pdfOptions.NoLink = true;
HtmlToPdf.ConvertHtml(html, fileFullPath, pdfOptions);

Thanks,
James
eo_support
Posted: Friday, July 20, 2018 2:15:15 PM
Rank: Administration
Groups: Administration

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

Can you PM us your order number/license key that covers the latest version?

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.