Solved

Problem with ABCPdf AddImageURL

Posted on 2010-11-11
9
3,130 Views
Last Modified: 2012-05-10
I took over some code of a site that was using ABCPdf 5.  Not having ABCPdf 5, I downloaded the trial of ABCPdf 7.  Using the code below, when it hits the AddImageURL, the page loads for over a minute, then returns an HTTP 500 - Cannot display the page.

If I copy and past the URL that is being passed, the page loads in less than a second, so I know it's not a timeout issue.  If I change the URL to http://www.google.com, it works fine.  Is this because I'm using the server IP address?  I don't have a domain name for the site yet as it's still under development.

Thanks,

David

Set theDoc = Server.CreateObject("ABCpdf7.Doc")
            
theURL = "http://<server IP>/Report.asp?table_name="&table_name&"&taxYear="&taxYear&"&method="&method&"&user_id="& Trim(session("user_id"))&"&county="& Trim(session("county"))&"&strsessionpass="& Trim(session("strsessionpass")) &"&unique="&Now

theID = theDoc.AddImageUrl(theURL)
0
Comment
Question by:David Kroll
  • 6
  • 3
9 Comments
 
LVL 16

Expert Comment

by:jmatix
Comment Utility
Error 500 is Internal Server Error. So that means ABCPdf is making the request to your server. But the request is failing on the server due to:

1. Malformed URL parameters
OR
2. Server configuration problems

If you have access to the server, check the server logs to see what exact URL it is getting from ABCPdf.
0
 
LVL 11

Author Comment

by:David Kroll
Comment Utility
Ok, looked at the logs.  The top line is from where the .asp file calls AddImageURL.  The second is from copying and pasting the url into IE.  Everything in the URL looks exactly the same to me.

2010-11-11 15:43:00 W3SVC787109940 192.168.100.11 GET /COMMERCIAL/genCompReport.asp table_name=ueTemp1111201093134&taxYear=2009&method=&user_id=2&county=HARRIS&strsessionpass=1111201093114&unique=11/11/2010%209:41:42%20AM&FSYDPZD=JVOLZTI|-|ASP_0147|500_Server_Error 80 - 72.16.145.244 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+Trident/4.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 500 0 64

2010-11-11 15:49:48 W3SVC787109940 192.168.100.11 GET /COMMERCIAL/genCompReport.asp table_name=ueTemp1111201093134&taxYear=2009&method=&user_id=2&county=HARRIS&strsessionpass=1111201093114&unique=11/11/2010%209:41:42%20AM&FSYDPZD=JVOLZTI 80 - 72.16.145.242 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+InfoPath.2;+.NET+CLR+2.0.50727;+.NET+CLR+1.1.4322;+.NET4.0C;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+AskTbFWV5/5.9.1.14019) 200 0 0
0
 
LVL 11

Author Comment

by:David Kroll
Comment Utility
I did some testing.  If I use AddImageURL with a .html file on my site, it works.  When I use a .asp file, it fails.  I even made a test.asp file that just writes out "hello".  Must be something to do with the .asp extension.
0
 
LVL 11

Author Comment

by:David Kroll
Comment Utility
Any other ideas on this?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 16

Expert Comment

by:jmatix
Comment Utility
In the log for ABCPdf request after the last parameter I see:

FSYDPZD=JVOLZTI|-|ASP_0147|500_Server_Error

Is that added by the server to indicate error or the request URL had that?
0
 
LVL 11

Author Comment

by:David Kroll
Comment Utility
Yes, that's not part of the original request
0
 
LVL 16

Expert Comment

by:jmatix
Comment Utility
I am clueless as to why two requests with exact same URLs to the exact same server would give different results. I see ABCPdf sends the User Agent as IE 7.0. Your test shows IE 8.0. Not that it will make any difference.
0
 
LVL 11

Accepted Solution

by:
David Kroll earned 0 total points
Comment Utility
I figured it out.  I had ASP debugging enabled in IIS.  Disabling that fixed the problem.
0
 
LVL 11

Author Closing Comment

by:David Kroll
Comment Utility
Solved it on my own.  Thanks for the input jmatix!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

11 Experts available now in Live!

Get 1:1 Help Now