Solved

Problem with ABCPdf AddImageURL

Posted on 2010-11-11
9
3,158 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
ID: 34112308
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
ID: 34112662
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
ID: 34114789
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
ID: 34121219
Any other ideas on this?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 16

Expert Comment

by:jmatix
ID: 34121940
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
ID: 34122006
Yes, that's not part of the original request
0
 
LVL 16

Expert Comment

by:jmatix
ID: 34122087
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
ID: 34123485
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
ID: 34153351
Solved it on my own.  Thanks for the input jmatix!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

12 Experts available now in Live!

Get 1:1 Help Now