Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF image not showing under SSL Options
Posted: Friday, October 24, 2014 2:28:03 PM
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?
eo_support
Posted: Friday, October 24, 2014 3:20:51 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,607
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!
Posted: Tuesday, November 11, 2014 3:43:02 PM
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.
eo_support
Posted: Tuesday, November 11, 2014 4:02:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,607
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.aspx

Thanks!
Posted: Tuesday, November 11, 2014 5:56:28 PM
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.
eo_support
Posted: Tuesday, November 11, 2014 9:07:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 21,607
Thanks for the update. That does make sense. So it should not have anything to do with SSL at all.
Greg
Posted: Tuesday, July 9, 2019 5:31:12 PM
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 :)


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.