I want to use a file that is in my svn repository as follows:
public List <XElement> TableReqDAL (string file)
{
XDocument xml = XDocument.Load ("http://source:8080/svn/DataWarehouse/MEX/trunk/TSO/Mappings/" + file + ".xml");
(...)
}
I get this error:
The remote server returned an error: (401) Unauthorized.
Have a look at this thread,
XMLDocument.Load(url) through a proxy
You're going to need to authenticate before you can access the resource - try browsing to the URL in your browser, you are going to be presented with a username\\password dialog - you need to do this programmatically.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.