Welcome Guest Search | Active Topics | Sign In | Register

How to debug RenderAsPDF method Options
Greg
Posted: Tuesday, January 21, 2014 11:56:34 AM
Rank: Member
Groups: Member

Joined: 11/13/2013
Posts: 11
Hello,

I have an ASP.NET project in which I have a page containing some pictures. Everything has been working fine so far but today one of the users reported that they could not see any pictures on the PDF. They are actually not downloaded because they appear has a blue square with a question mark in but they are displayed correctly on the web page.
Everything is fine for the other customers and on my end too, dev server or prod server. I tried to access to the images the user requests for this page from a local browser on the server and I could reach them.

I would like to be able to debug further the method which generates the PDF. What would be the best way to do that?

Could it be something linked to the user's session or web browser? I am running out of ideas

Thank you
Grégory
eo_support
Posted: Tuesday, January 21, 2014 12:09:25 PM
Rank: Administration
Groups: Administration

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

You will want to start from your web server log. When the converter needs to render an image, it first sends a request to your web server like a regular web browser does. If for some reason that Url is wrong or your web server didn't respond that Url properly, then you will get the blue question mark. By looking at your web server log you will be able to find out whether the Url is correct, or whether your server didn't server it correctly.

Thanks!
Greg
Posted: Tuesday, January 21, 2014 12:34:34 PM
Rank: Member
Groups: Member

Joined: 11/13/2013
Posts: 11
Thanks for this answer.

It seems that no events match the error and the time when the user tried to convert the page as a PDF. I am guessing the Url of the images were correct.

Would you have any other way?

Thank you
Grégory
eo_support
Posted: Tuesday, January 21, 2014 3:43:55 PM
Rank: Administration
Groups: Administration

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

There are no other ways other than trial and error. If nothing shows up in your IIS logs, then the only possibility is for some reason the request didn't even reach your web server at all. Once common situation for this is DNS configuration error on your server, but that usually affects all users, unless that user uses a different domain name to access your site. You can find more information about this problem here:

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

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.