Welcome Guest Search | Active Topics | Sign In | Register

problem API EO.PDF installing the server Options
José I. Estrada
Posted: Friday, February 27, 2015 9:45:57 AM
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 ---
eo_support
Posted: Friday, February 27, 2015 10:40:17 AM
Rank: Administration
Groups: Administration

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

What version of Windows is on your server?

Thanks!
José I. Estrada
Posted: Friday, February 27, 2015 11:38:40 AM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 9
Windows Server 2012, the hosting is http://www.arvixe.com/asp_net_web_hosting
eo_support
Posted: Friday, February 27, 2015 11:44:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
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!
José I. Estrada
Posted: Friday, February 27, 2015 11:59:16 AM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 9
ok I install the new version and try to see if it works
José I. Estrada
Posted: Friday, February 27, 2015 12:34:48 PM
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/



eo_support
Posted: Friday, February 27, 2015 3:18:28 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
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!
José I. Estrada
Posted: Friday, February 27, 2015 6:13:33 PM
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
José I. Estrada
Posted: Friday, February 27, 2015 7:56:16 PM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 9
if that does not work, what servers recommend me to host and work?
eo_support
Posted: Saturday, February 28, 2015 9:32:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Can you try to run a browser directly on your server and see if you can connect to a SSL site?

Thanks!
José I. Estrada
Posted: Saturday, February 28, 2015 9:53:41 AM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 9
Yes i can, and work perfect
José I. Estrada
Posted: Monday, March 2, 2015 10:06:16 AM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 9
So what I can do?
eo_support
Posted: Monday, March 2, 2015 8:17:27 PM
Rank: Administration
Groups: Administration

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

Please try to set HtmlToPdf.Options.SSLVerificationMode to None and see if it works.

Thanks!
José I. Estrada
Posted: Monday, March 2, 2015 8:53:27 PM
Rank: Newbie
Groups: Member

Joined: 11/13/2014
Posts: 9
I tried HtmlToPdf.Options.SSLVerificationMode to None and it does not work :(
Ahmed Mehmood
Posted: Tuesday, May 29, 2018 2:39:01 AM
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
eo_support
Posted: Wednesday, May 30, 2018 11:35:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
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!
Ahmed Mehmood
Posted: Thursday, May 31, 2018 5:33:58 AM
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."
eo_support
Posted: Thursday, May 31, 2018 8:50:55 AM
Rank: Administration
Groups: Administration

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


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.