Hi everybody,
I try to load an xml file stored in a sharepoint library, but I give an (401) Unauthorized error.
My form is fully trusted and signed with my server's certificate. I'am login with administrator rights.
When I push a button on my form, this following method try to load my xml, but the error occurs :
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("http://server/site/library/file.xml");
No problem to load this file from my file system, but I really need to load it from this library.
Is it possible to pass my credentials to resolve this case ?
Or is there any other way to load this XML file ?