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

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.
SitePowerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Juan_BarreraCommented:
Hi,

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, asp.net 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?

Cheers,

0
SitePowerAuthor Commented:
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.
0
Juan_BarreraCommented:
Mmm...bugger!
Just a thought: What happens if you change the image format? I've seen some pdf utilities that don't handle properly certain formats.
0
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

SitePowerAuthor Commented:
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!
0
Juan_BarreraCommented:
Well, I hope you find the solution! Good luck!
0
SitePowerAuthor Commented:
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 www.WebSuperGoo.com). It works great (when I have things designed properly).
Thanks to Juan Barrera for trying to help.
Dave
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Maulik ModiCommented:
I am having tough time with hyperlinks...I tried both methods : AddImageHTML and AddImageURL. Generated PDF displays them as normal text only.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.