473,778 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing classic ASP page that returns xml

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.Loa d() 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("ht tp://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.
Apr 26 '06 #1
1 1263
What is the actual exception being thrown?

Cheers,

Greg
"Mike Hanson" <Mi********@dis cussions.micros oft.com> wrote in message
news:70******** *************** ***********@mic rosoft.com...
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.Loa d() 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("ht tp://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.

Apr 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2192
by: Keith E. | last post by:
I have implemented a Web Service on an IIS 5.0 platform using the ASP listener I can access the Web Service just fine from a VB 6 App and classic ASP using the SOAP 3.0 toolkit and its "MSSOAP.SoapClient30" object However, one of the servers that I'd like to call the Web Service from is a shared hosting platform that does not offer the "MSSOAP.SoapClient30" object It only has the MS XMLDOM. I have located an example of Accessing a Web...
2
1302
by: RichDef | last post by:
Hello everyone! I have been running some tests of a component that simply returns an image path based upon some logic and a simple select statement to an Access db. The component had to be available to Classic ASP apps and ASP.Net apps from a central location. Performance is a great concern. In developing this solution I created three seperate mini-apps to try to ascertain what the best approach could be.
23
2909
by: Lamberti Fabrizio | last post by:
Hi all, I've to access to a network file from an asp pages. I've red a lot of things on old posts and on Microsoft article but I can't still solve my problem. I've got two server inside the same NT domain, each one has its own web server. The web server is always IIS 5.0.
6
12765
by: ASPfool | last post by:
Hello everyone, Please help me before I throw my computer out of the window: I'm working on a web application in classic ASP (vbscript), which is making calls to some webservices. The calls are made using SOAP - i installed the SOAP3 toolkit on my windows 2k server to enable this. The webservice calls are returning String Arrays which I can't seem to do anything useful with. The call shown below returns a string array with two...
1
1340
by: Johan Riis Johansen | last post by:
Hi Folks! A few tips or pointers on this one would be appriciated. Presently I'm working on a webproject, and I've decided to create a class that acts as template for all pages on the site. What all the pages do is inheirit from MyTemplatePage instead of System.Web.UI.Page. That works fine and everything. My problem actually stems from the fact that the same class has to be used for dictating the
5
1423
by: Mark | last post by:
Hi all, I have a .NET webservice which I would like to consume from a classic ASP page. Furthermore, I would like to populate a recordset (if possible) with the data from the returned webservice so I can implement paging in the classic ASP page... Does anyone have any idea if I can do this, and if so, how I would go about implementing it? TIA
5
1747
by: joshbeall | last post by:
Hi All, I'm wondering if there is any way to access .NET assemblies from classic ASP/VBScript? We have a legacy app that was written using classic ASP and VBScript, and there's a new facility that one of our developers did in .NET that we'd like to use with our legacy app. Specifically, we have an online signup process that is a multi-page form written using classic ASP. When the user finally completes the signup process, we'd like to
7
13444
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got the select box filling with code similar to below: <SCRIPT LANGUAGE=VBSCRIPT RUNAT=SERVER> Public Sub BuildComboBox(rs, dispname, val, name, selected) 'rs = the recordset 'val = fieldname to place in the val of the option
1
1999
by: carled | last post by:
Hi all. New here and new to .net from classic asp. I have to access an xml-rpc webservice in .net and it's making my brain fry trying to get it all set up. I'm most comfortable with vb, but I can translate from c# if anyone can do it in that! I have created a class in my app_code folder that will access the webservice like so: Imports Microsoft.VisualBasic Imports CookComputing.XmlRpc Public Class mapserver Public Structure...
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8954
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5497
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.