|
Rank: Member Groups: Member
Joined: 4/20/2011 Posts: 19
|
We are using the EO.PDF control on a site configured for SSL. We are encountering an issue where an image used in the header will not show when the site is under SSL. This does work if SSL is turned off on the site.
I upgraded to the latest version of EO.PDF and it is still not working. I tried setting the HtmlToPdf.Options.SSLVerificationMode to all the different options to see if that made a difference. No change. The report comes up but there is the image missing icon in the header. If I view the same report in HTML mode the image shows up so I know the image path is correct.
Has anybody else encountered this behavior?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
We are not aware of any issues like this. The first thing you will want to check is how you created the header and then try to convert the same image in a regular conversion instead of just in the header. If that still does not work, you can try to monitor the network traffic (for example, with fiddler) to see if you see any errors. Usually those will give you enough information on what went wrong.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 4/20/2011 Posts: 19
|
I haven't gotten anywhere with this issue. I checked the HTML again. The image path is fine. The image shows on the PDF in a non SSL environment, but not under IIS set to require SSL. I don't see any errors.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi, This is usually because your server refuses to serve the request. You will want to check your IIS server log or uses a network sniffer to find out exactly why it refuses. Once you find that out, you can decide how to satisfy it. For example, if your server needs a client certificate, then you must provide a client certificate. You can find more information on working with SSL page here: http://www.essentialobjects.com/doc/4/htmltopdf/ssl.aspxThanks!
|
|
Rank: Member Groups: Member
Joined: 4/20/2011 Posts: 19
|
I finally got this working. The logs were no help at all, but another forum post led me in the right direction. In PDF rendering mode on this report I had to supply the image url with the server's internal IP address. For the report to work in HTML mode I had to supply the image url with the external web address. Once I tried to hit the image url through a browser on the actual server I saw that it would not resolve the external url and it made sense.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Thanks for the update. That does make sense. So it should not have anything to do with SSL at all.
|
|
Rank: Newbie Groups: Member
Joined: 1/4/2013 Posts: 1
|
I encountered the same issue and got around it effectively the same way but added in the SSL binding IP to the "hosts" file in C:\Windows\System32\drivers\etc
Eg: 10.10.0.5 www.SiteURL.com (Where 10.10.0.5 is the internal server IP bound to the SSL cert for the site)
In the actual HTML being converted to the PDF it is the full external path of the file. Hope that helps :)
|
|