469,954 Members | 1,659 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,954 developers. It's quick & easy.

Geting remote XML file into DataSet or XmlDocument

I tried the code and it works without any probs. The prob
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
.

Nov 12 '05 #1
1 4304
I had the same exact problem. Make sure you SP1 of the .NET Framework 1.1 - I installed it yesterday and the error was gone. It has something to do with the number of protocols that were bound to the network adapters on my machine. More than 50 protocols causes .NET to give me that error.

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Matt M | last post: by
3 posts views Thread by Tom Vukovich | last post: by
5 posts views Thread by Rob Panosh | last post: by
1 post views Thread by JoshKaos | last post: by
7 posts views Thread by =?Utf-8?B?ZG91Zw==?= | last post: by
5 posts views Thread by slinky | last post: by
6 posts views Thread by =?Utf-8?B?RGF2aWRN?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.