|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
I have an application that uses EO.Pdf.HtmlToPdf.ConvertUrl and localhost works but the server does not work for https pages, help me please
Error: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> EO.Pdf.Internal.an9: This session is no longer valid. If you wish to reuse the session later, please consider calling GetCookies to retain the session cookies, then reuse these cookies through HtmlToPdfOptions.Cookies with another session. (5) at EO.Pdf.Internal.md.l() at EO.Pdf.Internal.md.a(apj A_0) at EO.Pdf.HtmlToPdfSession.a(apj A_0) at EO.Pdf.HtmlToPdfSession.a(ql A_0, String A_1, String A_2, Int32 A_3, Int32 A_4, Boolean A_5) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, Stream stream, HtmlToPdfOptions options) at ExportPDF.HTMLConvertPDF.ConvertPDFOther(String Url, String user, String password) --- End of inner exception stack trace --- Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ServiceModel.FaultException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> EO.Pdf.Internal.an9: This session is no longer valid. If you wish to reuse the session later, please consider calling GetCookies to retain the session cookies, then reuse these cookies through HtmlToPdfOptions.Cookies with another session. (5) at EO.Pdf.Internal.md.l() at EO.Pdf.Internal.md.a(apj A_0) at EO.Pdf.HtmlToPdfSession.a(apj A_0) at EO.Pdf.HtmlToPdfSession.a(ql A_0, String A_1, String A_2, Int32 A_3, Int32 A_4, Boolean A_5) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, Stream stream, HtmlToPdfOptions options) at ExportPDF.HTMLConvertPDF.ConvertPDFOther(String Url, String user, String password) --- End of inner exception stack trace ---
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Hi,
What version of Windows is on your server?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Hi,
Please check if you are running the latest EO.Pdf. There was one Windows update recently that broke EO.Pdf and can cause the above error message. We have since worked around the problem so the newer build won't have this problem. So please download the latest build from our download page and see if it works for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
ok I install the new version and try to see if it works
|
|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
does not work, the problem persists. Works with http but not https http://demo.developerji.com/convertpdf/
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Hi, Please download the EO.Pdf.dll 6.0.32.2 from nuget (our download page is not updated yet and still has 6.0.31.2): https://www.nuget.org/packages/EO.Pdf/After you update to that version, you need to: 1. Set EO.Pdf.Runtime.TempFilePath to a folder. Such as "c:\temp"; 2. Grant your IIS user full read/write permission to that folder; After that please run the test, then check: 1. If you see any log entry with source as "EO.Pdf" in your event viewer; 2. If you see a eo_pdf.log file in EO.Pdf.Runtime.TempFilePath; If you see any, please let us know the content and we will then go from there. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
The error is:
[Exception: EO.Pdf.HtmlToPdfException: Failed to convert Url 'https://www.google.com.mx'.(1035:Can not establish SSL connection) at EO.Pdf.Internal.agl.a(String A_0, Boolean A_1) at EO.Pdf.Internal.agl.b(HtmlToPdfOptions A_0, String A_1, Boolean A_2) at EO.Pdf.Internal.agl.a(as3 A_0) at EO.Pdf.Internal.md.g.a(Byte[] A_0)] EO.Pdf.Internal.ap0.b(BinaryReader A_0) +166 EO.Pdf.Internal.md.a(ap0 A_0) +1445 EO.Pdf.HtmlToPdfSession.a(ap0 A_0) +80 EO.Pdf.HtmlToPdfSession.a(qm A_0, String A_1, String A_2, Int32 A_3, Int32 A_4, Boolean A_5) +100 EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options) +91 EO.Pdf.HtmlToPdf.ConvertUrl(String url, String pdfFileName, HtmlToPdfOptions options) +50 ExportPDF.Default3.Page_Load(Object sender, EventArgs e) +195 System.Web.UI.Control.OnLoad(EventArgs e) +92 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
|
|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
if that does not work, what servers recommend me to host and work?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Can you try to run a browser directly on your server and see if you can connect to a SSL site?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
Yes i can, and work perfect
|
|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
So what I can do?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Hi,
Please try to set HtmlToPdf.Options.SSLVerificationMode to None and see if it works.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/13/2014 Posts: 9
|
I tried HtmlToPdf.Options.SSLVerificationMode to None and it does not work :(
|
|
Rank: Newbie Groups: Member
Joined: 5/28/2018 Posts: 3
|
José I. Estrada wrote:I tried HtmlToPdf.Options.SSLVerificationMode to None and it does not work :( Hi, Did you find any solution to this issue? I am facing the same problem on server ================ Message ================ EO.Pdf.HtmlToPdfException: Failed to convert Url '----HOST URL------'. (1035:Can not establish SSL connection) at EO.Pdf.Internal.dd.a(String A_0, Boolean A_1)\r\n at EO.Pdf.Internal.dd.b(HtmlToPdfOptions A_0, String A_1, Boolean A_2)\r\n at EO.Pdf.Internal.dd.a(br A_0)\r\n at EO.Pdf.Internal.lr.c.a(Byte[] A_0)
================ Inner Exception ================
================ Stack Trace ================ at EO.Pdf.Internal.a.b(BinaryReader A_0)\r\n at EO.Pdf.Internal.lr.a(a A_0)\r\n at EO.Pdf.HtmlToPdfSession.a(a A_0)\r\n at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options)\r\n at EO.Pdf.HtmlToPdf.ConvertUrl(String url, String pdfFileName, HtmlToPdfOptions options)\r\n at EO.Pdf.HtmlToPdf.ConvertUrl(String url, String pdfFileName)\r\n
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Hi,
Please check your EO.Pdf version. Older version of EO.Pdf uses a much older browser engine that does not support newer version of SSL. So if your web server only accepts newer version of SSL, then you won't be able to connect with older version of EO.Pdf. You can download the current version from our download page and see if that resolves the issue for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/28/2018 Posts: 3
|
eo_support wrote:Hi,
Please check your EO.Pdf version. Older version of EO.Pdf uses a much older browser engine that does not support newer version of SSL. So if your web server only accepts newer version of SSL, then you won't be able to connect with older version of EO.Pdf. You can download the current version from our download page and see if that resolves the issue for you.
Thanks! The version that we are using is 4.0.68.2. However, after upgrading to 18.1.75 it displays an error "Conversion failed. License 'XXXXXXXX' is not valid for this build."
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Ahmed Mehmood wrote:The version that we are using is 4.0.68.2. However, after upgrading to 18.1.75 it displays an error "Conversion failed. License 'XXXXXXXX' is not valid for this build." Most likely you will need to purchase a new license in that case. We provide free upgrade for one year and upgrade discount up to 3 years. Since your version is version 4, which was released around 2011, so you have a very old version and your upgrade window has closed a long time ago. If you can PM us your order number (do not post it publicly in the forum), we can double check it for sure.
|
|