Accessing classic ASP page that returns xml

G

Guest

I am working on a web app that needs to get xml data from a classic ASP application hosted on a remote server.

If I reference the url with IE, the xml is displayed correctly and formatted using the default style sheet, so we know the page is working for a standard browser request.

However if I access the page using either XmlDocument.Load or and HttpWebRequest I get an "Internal Server Error 500"

The following should work as far as I can tell from documentation and samples

XmlDocument xmlDoc = new XmlDocument;
xmlDoc.Load("http://server/pag.asp");

But the second line results in the exception. The stack trace shows that the Load method has used an HttpWebRequest and throws the exception at the point where GetResponse is called. Which is the same point the exception is thrown if I use the HttpWebRequest directly.

This is fairly urgent, so any help will be greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top