Solved

Problem with ABCPdf AddImageURL

Posted on 2010-11-11
9
3,261 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 11

Author Comment

by:David Kroll
ID: 34121219
Any other ideas on this?
0
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

695 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