Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem with ABCPdf AddImageURL

Posted on 2010-11-11
9
Medium Priority
?
3,354 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:Justin Mathews
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
Industry Leaders: 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!

 
LVL 11

Author Comment

by:David Kroll
ID: 34121219
Any other ideas on this?
0
 
LVL 16

Expert Comment

by:Justin Mathews
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:Justin Mathews
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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

610 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