I just upgraded my Windows Phone 8.0 Silverlight app to a Windows Phone 8.1 Runtime app. Unfortunately, I have to downgrade this app to a 8.1 SL project, because Windows Runtime lacks Google Admob support.
That aside, in my 8.1 RT project I use the following code to fetch a XML feed:
private async void GetData() { XmlDocument regenthetinXML = await XmlDocument.LoadFromUriAsync(new Uri("http://regenthet.in/data/regenthetin.xml", UriKind.Absolute)); }
The XmlDocument class is supported at both platforms, but when I use exactly the same code in my Windows Phone 8.1 SL project I get exceptions like this one:
An exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll but was not handled in user code Additional information: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
Any suggestions? What I'm doing wrong?
SO
posting looks to be similar in nature.. stackoverflow.com/questions/9650232/… – MethodMan