I'm trying to access my .xml file in the ClientBin with no success.
code:
WebClient xmlClient = new WebClient();
xmlClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(xmlClient_DownloadStringCompleted);
Uri uri = new Uri("Antwerpen1.xml", UriKind.RelativeOrAbsolute);
xmlClient.DownloadStringAsync(uri);
While debugging the uri throws the following error: System.InvalidOperationException
The result throws the following error: This operation is not supported for a relative URI
I can access my file with the following path : http://localhost:2546/contentManagement.Web/ClientBin/Antwerpen1.xml
What am I doing wrong?
update: I tried the same code in the code behind of my main page and it worked. Still no result with the webservice.
update2: I found out it's not a problem of the URI but the xmlClient.DownloadStringAsync. The BaseAdress(path where the xml file in my clientbin is stored) is empty for some reason..
, ty in advance
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)