|
Rank: Newbie Groups: Member
Joined: 7/19/2011 Posts: 7
|
Hi,
On our dev server we are able to create the PDF properly but when we use the same code in our Test box it gives this error.
Server Error in '/' Application. Failed to convert Url 'https://communities-test.informatica.com/infakb/solution/13/Pages/107075.aspx'.(1060:A network error occurred.) 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: EO.Pdf.HtmlToPdfException: Failed to convert Url 'https://communities-test.informatica.com/infakb/solution/13/Pages/107075.aspx'.(1060:A network error occurred.)
Source Error:
Line 30: String url = Request.Url.AbsoluteUri; Line 31: url = url.Substring(0, url.IndexOf('?')); Line 32: HtmlToPdf.ConvertUrl(url, response.OutputStream); Line 33: response.End(); Line 34: }
Source File: c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES\PDFExport.ascx.cs Line: 32
Stack Trace:
[HtmlToPdfException: Failed to convert Url 'https://communities-test.informatica.com/infakb/solution/13/Pages/107075.aspx'.(1060:A network error occurred.)] EO.Pdf.HtmlToPdfException.b(Exception A_0) +104 EO.Pdf.Internal.j5.g() +1978 EO.Pdf.HtmlToPdf.ConvertUrl(String url, Stream stream) +109 WebApplication2.PDFExport.ImageButton1_Click(Object sender, ImageClickEventArgs e) in c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\CONTROLTEMPLATES\PDFExport.ascx.cs:32 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +98 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +161 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618
Please advice.
Thanks Sumeet
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This is because your server certificate is invalid. If you use your browser to access the same Url you will get a certificate error.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 7/19/2011 Posts: 7
|
Hi,
Thanks for the reply. But when i try to access the page i do not get any certificate error. Is there anything i am missing?
Thanks Sumeet
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There are several possibilities:
1. You have already added that invalid SSL certificate into your browser's trusted certificate list. However that trusted certificated list is your browser's trusted list, not the converter's trusted list. Our converter only trusts real CA roots;
2. communities-test.informatica.com points to a different machine on your test box than on your dev box;
Error 1060 means "cannot validate the SSL certificate through a trusted CA root". To continue testing, you can either just try the HTTP version, or make sure your server and your client machine both points to the same server that has a valid SSL, or make sure your test server has a valid SSL certificate (a real SSL certificated you bought from a CA, not a certificate generated by yourself).
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 7/19/2011 Posts: 7
|
Hi,
Thanks again for your reply. We are looking into the certificate issue. I looks that its has expired.
Will let you know the things once we add the new certificate.
Thanks Sumeet
|
|