G
Guest
I've ported some XML reading code from my WinForms app to my ASP.net app but
can't get it to work. Here's the code:
// Just testing locally for now
XmlReader reader = new XmlTextReader("http://localhost/TestApp/Menu.xml");
DataSet ds = new DataSet();
ds.ReadXml(reader, XmlReadMode.Auto);
reader.Close();
Yet I get the following error. I don't understand why it's "Unauthorized":
The remote server returned an error: (401) Unauthorized.
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 remote server returned an
error: (401) Unauthorized.
can't get it to work. Here's the code:
// Just testing locally for now
XmlReader reader = new XmlTextReader("http://localhost/TestApp/Menu.xml");
DataSet ds = new DataSet();
ds.ReadXml(reader, XmlReadMode.Auto);
reader.Close();
Yet I get the following error. I don't understand why it's "Unauthorized":
The remote server returned an error: (401) Unauthorized.
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 remote server returned an
error: (401) Unauthorized.