?
Solved

Problem with ABCPdf AddImageURL

Posted on 2010-11-11
9
Medium Priority
?
3,299 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month12 days, 12 hours left to enroll

777 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