must be in your network. Maybe you have to reconfigure
your Firwall.
Sonu
http://weblogs.asp.net/sonukapoor/
-----Original Message-----
How do I load a remote xml file into the DateSet or into System.Xml.XmlDocument on a WEB Application.
I tried these codes via c#:
System.Xml.XmlDocument XmlBelge = new XmlDocument();
XmlBelge.Load("http://blogs.msdn.com/ericgu/rss.aspx");
But I taked this error:
----------------------------
The underlying connection was closed: Unable to connect to the remote server.Description: An unhandled exception occurred during the execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.
Exception Details: System.Net.WebException: The underlying connection was closed: Unable to connect to the
remote server.
Source Error:
Line 61: {
Line 62: System.Xml.XmlDocument XmlBelge =new XmlDocument();Line 63: XmlBelge.Load ("http://blogs.msdn.com/ericgu/rss.aspx");
-------------
I used DataSet.ReadXml("URL") and XmlControl and the result was same with above: (The underlying connection was
closed: Unable to connect to the remote server. )
I can run it on Windows Application but I would like to run on Web Application.
I am working in a LAN and behind a firewall, and my system is: WinXP Pro, Framework 1.1, IIS 5.1
How can I resolve this problem.
Thanks.
Engin
.