abcpdf addimagehtml Unable to render HTML. Page load timed out. Unable to load page.

Posted on 2008-11-03
Last Modified: 2013-11-08
Using ABCpdf to generate PDF from generated HTML. I have several sites using the same BasePage code and the same .aspx.vb code but one gives me the message "Unable to render HTML. Page load timed out. Unable to load page." and the others don't. What's more, that one only has error if there is an <img> tag in the HTML but not if there is not. Also, the problem one works OK on local development server.
- Have tried adjusting timeout and retries - no help.
- Have tried making sure ASPNET and IUSR_ have RWXD access rights - no help.
Question by:SitePower
    LVL 20

    Assisted Solution


    Although you say that you've made sure that both ASPNET and IUSR_ have the right access, are you sure that the application is running as any of those?
    Just as an example, but, by default, under IIS 6, runs as "NTAUTHORITY/NETWORK SERVICE"
    After rechecking that, can you make sure that the application user has Read / Write to the directory containing the images, and that the specific image file is not being used by any other process at that instant?



    Author Comment

    Thanks for the suggestions. I compared two sites - one that is working and the one that is not. The settings for all file permissions for all concerned folders are the same. And I also set up a test where the image file(s) would not be in use by any other process.

    The users are: Admin, IUSR_(machine), IUSR_(applic), NETWORK, SYSTEM, NETWORK SERVICE, and ASPNET.

    Still same problem.
    LVL 20

    Assisted Solution

    Just a thought: What happens if you change the image format? I've seen some pdf utilities that don't handle properly certain formats.

    Author Comment

    I have tried both JPG and PNG with the same result in the faulting site. Also tried many different image files (these are all from photos). Also, this same PDF routine has been working at this site for several months and I have used it at other sites for more than a year - all successfully. I haven't yet figured out what changed and why it stopped working properly at that one site.

    Hmmm..... Does that tell me I should start keeping versions? Lazy programmer that I am I have not done so.

    I will continue trying to find out what changed.

    Thanks for your help!
    LVL 20

    Expert Comment

    Well, I hope you find the solution! Good luck!

    Accepted Solution

    Hey: to anybody reading this thread - I found the problem and fixed it. The problem was the routine hanging when processing an HTML file that had images; it would run fine when no images were present.

    In my case it was a path issue. The routine reads in an already-created HTML file and uses AddImageHtml to bring it into the document being formed. Any images associated with the HTML file are stored in the same folder as the HTML file, so once read in I had to change the path to the image folder so the PDF maker running in the root could find them.

    I had used an absolute path, when I needed to use a relative path! Once I changed that the routine worked fine. Of course it took me 14 days at 2-4 hours per day to FIND it!!
    FYI: I am using ABCpdf, .NET Pro version, 6.1 (see It works great (when I have things designed properly).
    Thanks to Juan Barrera for trying to help.
    LVL 6

    Expert Comment

    I am having tough time with hyperlinks...I tried both methods : AddImageHTML and AddImageURL. Generated PDF displays them as normal text only.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now