Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2008-11-03
7
Medium Priority
?
11,211 Views
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.
0
Comment
Question by:SitePower
  • 3
  • 3
7 Comments
 
LVL 20

Assisted Solution

by:Juan_Barrera
Juan_Barrera earned 800 total points
ID: 22873025
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
 

Author Comment

by:SitePower
ID: 22880390
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
 
LVL 20

Assisted Solution

by:Juan_Barrera
Juan_Barrera earned 800 total points
ID: 22880723
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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:SitePower
ID: 22882345
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
 
LVL 20

Expert Comment

by:Juan_Barrera
ID: 22882357
Well, I hope you find the solution! Good luck!
0
 

Accepted Solution

by:
SitePower earned 0 total points
ID: 22899617
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
 
LVL 6

Expert Comment

by:Maulik Modi
ID: 23506901
I am having tough time with hyperlinks...I tried both methods : AddImageHTML and AddImageURL. Generated PDF displays them as normal text only.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview
Suggested Courses

810 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