Welcome Guest Search | Active Topics | Sign In | Register

Images, CSS and Telerik RadHTML Chart is not appearing on Exported PDF. Options
Riz
Posted: Friday, July 3, 2015 7:54:24 AM
Rank: Newbie
Groups: Member

Joined: 7/3/2015
Posts: 4
Hello,

We have Ticket Management kind of ASP.Net Web based Application. This application is basically used by our multiple clients. In this application, there is one page where we are using telerik:RadHtmlChart and Telerik:Grid controls. In this page we have used EO.PDF tool to Export the ASPX page into PDF. For Exporting ASPX page into PDF we have used <eo:ASPXToPDF> control in Markup side and used ASPXToPDF1.RenderAsPDF(true) method in code behind side so that when user click on "Export to PDF" link then the PDF will get downloaded in end user side. Now the problem here is, for some of the clients when user hit "Export to PDF" link then every contents including telerik:RadHtmlChart, Telerik:Grid controls, other images and css correctly exported into PDF. But for some of the other clients when user hit "Export to PDF" link then only text contents are exported into PDF. The telerik:RadHtmlChart, Telerik:Grid controls, other images and CSS style did get appears into the Exported PDF. (Please note that our every client is using common code base of our application. So there is no code changes for each client.)

To resolve this issue we have compared the IIS settings of Site (where Exported PDF apprars correctly) vs. site (where Exported PDF appears Incorrectly) but we didn't find any significant differences which could cause this issue. Also as per Troubleshooting page of EO.PDF site, we have tried by applying BaseURL to EO.PDF using this code "HtmlToPdf.Options.BaseUrl = 'URL of Our Site' "(Here we have tried different possible URL combination of our site) but still the issue is encountering. We have also verified whether there is any authentication problem which restrict these resources from EO.PDF but in our application we do not set any authentication to access the images of our site.

Please help us how we can identify the cause of this issue (which only encounters for some of our clients) and how we can resolve this issue.

Thanks,
Riz
eo_support
Posted: Friday, July 3, 2015 10:49:25 AM
Rank: Administration
Groups: Administration

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

Most of the time this is a DNS issue on your server. See here for more details:

http://www.essentialobjects.com/doc/web/aspxtopdf/troubleshoot.aspx

Thanks
Riz
Posted: Tuesday, July 7, 2015 11:22:07 AM
Rank: Newbie
Groups: Member

Joined: 7/3/2015
Posts: 4
Hi,

Thanks for the feedback.

As per instructions mentioned in link, we have verified whether the JavaScript, CSS and images are accessible locally from the web server or not. We found that, when we access the same URL locally (i.e. from the Web Server where the EO.PDF converter is located) then the page is appears correctly and every image, css, JavaScript loads correctly for the page. So it seems that the issue is not related to the DNS.

We investigated more on this but still we are not able to identify the exactly cause. Please help us to identify the cause.

Thanks,
Riz
eo_support
Posted: Tuesday, July 7, 2015 3:02:12 PM
Rank: Administration
Groups: Administration

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

In that case you will want to check IIS's log file to see:

1. Whether the request for those resources have been sent to your web server;
2. Whether web server has successfully processed them;

Most likely it will fail on step 2. In that case you should be able to see the exact error code in your IIS log file. That might be able to tell you what's wrong.

Thanks!
Riz
Posted: Thursday, July 9, 2015 6:11:45 AM
Rank: Newbie
Groups: Member

Joined: 7/3/2015
Posts: 4
Hi,

Thanks for the suggestion about looking into the Log file of IIS.

As per your suggestion we have looked into the IIS Log files for both the sites (where Exported PDF appears correctly) vs. site (where Exported PDF appears Incorrectly). Here we found that the IIS file of site where Exported PDF appears INCORRECTLY does NOT contains the entries for EO.PDF requests whereas the IIS file of site where Exported PDF appears CORRECTLY does contains all the entries of EO.PDF requests with 200 (i.e. OK. The client request has succeeded) status. I don't know why the EO.PDF requests for static resources does not get logged into the IIS Log file for one site and properly logged for the another site. (NOTE : Both the sites are using common code base and hosted on same server. Also both the sites belongs to same Main Domain and having separate SubDomain. For ex. one site having the URL as https://abc.xyz.com and other site having URL as https://mno.xyz.com).

Also, one thing we noticed in IIS Log file of site where Exported PDF appears correctly that, for the EO.PDF requests the Server IP address (s-ip field) is different than the Server IP address for the other resources requests of page. I don't know why EO.PDF hit another IP for getting static resources and why other resources of Page hits to other IP address. Here for all the requests coming from both the IPs having status 200(i.e. OK. The client request has succeeded).

Is there any authentication or any other settings in IIS which can restrict the EO.PDF requests for particular site?

or it can be a SSL Certification issue as we are hosted our sites on https secured protocol? If yes then why other sites are working properly even they are also hosted on https and what settings we need to do in IIS to make nonworking sites run properly?

or do you know any other things that might cause this problem. Please advice.

Thanks,
Riz
eo_support
Posted: Thursday, July 9, 2015 11:34:52 AM
Rank: Administration
Groups: Administration

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

The fact you do not see the logs in EO.Pdf indicates that the request from EO.Pdf did not reach your web server correctly. Possible scenarios include:

1. DNS error as indicated in our original reply;
2. The request is being routed to a different server (for example, due to load balancing);

The IP address from EO.Pdf will be different than normal request. This is because EO.Pdf runs on your web server. So the connection for EO.Pdf is between your web server to your web server, where as a normal connection is between the end user's computer and your web server. However it should not be related to authentication since authentication is done by the IIS thus an authentication failure will show up in IIS's log. The problem CAN be related to SSL certificate though.

I would recommend you to try two things:

1. Use HTTP instead of HTTPS. This is not the solution --- it's just a test to see whether it has anything to do with SSL;
2. Use a traffic monitor to monitor the traffic when the problem occurs. This might be able to tell you where EO.Pdf is sending the request to and why or how it fails;

Thanks!
Riz
Posted: Tuesday, July 14, 2015 9:10:40 AM
Rank: Newbie
Groups: Member

Joined: 7/3/2015
Posts: 4
Hi,

Thanks for providing your recommendations.

As per your recommendation we have verified the first approach where we have checked our site on HTTP and HTTPS. The sites are running correctly on HTTP whereas the sites on HTTPS causing these problem. But please notice one thing here is that, out all clients are using HTTPS protocol and only some of the clients site has this issue and everything working as desired for other clients site who also uses HTTPS. We also verified the SSL settings on IIS for both the sites (where Exported PDF appears correctly) vs. site (where Exported PDF appears Incorrectly). For all the client sites SSL setting is set as "Ignore".

In second point you have recommended to use Traffic monitor. We search for some traffic monitor tools but whatever tools we have downloaded we found that from these tool its very difficult to understand which request is generated by EO.PDF. Later on we tried to use Fiddler, we tried the settings mentioned in some of links ( http://www.telerik.com/blogs/capturing-traffic-from-.net-services-with-fiddler , https://kb.sitecore.net/articles/017181) to capture the request generated by EO.PDF but it only captures the web-services calls which internally does by C#code but it didn't captures any EO.PDF requests. Do you know how to capture the http calls internally does by EO.PDF in Fiddler? or do you know any other tool which easy to understand and captures the http request generated by EO.PDF? Please advice.

Also please let us know if you have any other recommendations to troubleshoot this problem apart from the recommendations you provided in your last reply.

Thanks,
Riz
eo_support
Posted: Tuesday, July 14, 2015 9:46:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Riz wrote:
In second point you have recommended to use Traffic monitor. We search for some traffic monitor tools but whatever tools we have downloaded we found that from these tool its very difficult to understand which request is generated by EO.PDF. Later on we tried to use Fiddler, we tried the settings mentioned in some of links ( http://www.telerik.com/blogs/capturing-traffic-from-.net-services-with-fiddler , https://kb.sitecore.net/articles/017181) to capture the request generated by EO.PDF but it only captures the web-services calls which internally does by C#code but it didn't captures any EO.PDF requests. Do you know how to capture the http calls internally does by EO.PDF in Fiddler? or do you know any other tool which easy to understand and captures the http request generated by EO.PDF? Please advice.


You can find which traffic is from EO.Pdf very easily by checking the "from" IP address. "Normal" user traffic is from your client computer to your server. EO.Pdf traffic is from your server to your server.

You also want to check whether you have disabled older version of TSL on IIS:

https://support.microsoft.com/en-us/kb/187498

EO.Pdf uses an older version of the SSL so if you disabled older protocol supports, then EO.Pdf will not be able to connect.

Thanks


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.