Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf.HtmlToPdfException Options
fallen
Posted: Thursday, August 14, 2014 7:31:44 AM
Rank: Newbie
Groups: Member

Joined: 6/25/2014
Posts: 4
Hi All,

I have a licensed EO.PDF and used in a customized DNN module. The module work perfectly in the test site but for some reason not in the production site. I had the error below

StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: EO.Pdf.HtmlToPdfException: Failed to convert Url 'http://www.amiplatform.com/Default.aspx'.(1007:Failed to connect the remote server.) at EO.Pdf.Internal.de.a(String A_0, Boolean A_1) at EO.Pdf.Internal.de.b(HtmlToPdfOptions A_0, String A_1, Boolean A_2) at EO.Pdf.Internal.de.a(br A_0) at EO.Pdf.Internal.lu.c.a(Byte[] A_0) ---> System.Exception: EO.Pdf.HtmlToPdfException: Failed to convert Url 'http://www.amiplatform.com/Default.aspx'.(1007:Failed to connect the remote server.) at EO.Pdf.Internal.de.a(String A_0, Boolean A_1) at EO.Pdf.Internal.de.b(HtmlToPdfOptions A_0, String A_1, Boolean A_2) at EO.Pdf.Internal.de.a(br A_0) at EO.Pdf.Internal.lu.c.a(Byte[] A_0) at DotNetNuke.Modules.APOAssessmentGridReportExport.View.export_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) --- End of inner exception stack trace ---


I read this link http://www.essentialobjects.com/forum/postst5954_On-error-has-occured.aspx and tried to create a test application that will access the URL I am converting, the application can access the URL and write the content in xml. I tried to use the demo in EO site, it is also working. I also tried to create a web app that on page load will convert my URL and is also works. Is there anything I missed? Or we need a security set up in our server?
eo_support
Posted: Thursday, August 14, 2014 9:09:49 AM
Rank: Administration
Groups: Administration

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

This usually has to do with your DNS settings. EO.Pdf runs on your server. So the host name "www.amiplatform.com" must resolve on your production server. Very often the name resolves fine from client machines (otherwise people would have reported to you that your site is not working), but does not resolve correctly on your server. When that happens, EO.Pdf won't be able to reach your web server correctly and you will get a "Failed to connect to remote server" error.

Thanks!
fallen
Posted: Wednesday, August 27, 2014 1:02:20 AM
Rank: Newbie
Groups: Member

Joined: 6/25/2014
Posts: 4
The issue has been fixed after we mapped the host name to server's ip address. Thank you!
eo_support
Posted: Wednesday, August 27, 2014 7:28:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Glad to hear that this resolved the issue for you. Please feel free to let us know if there is anything else.


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.