C# reading xml file causes HRESULT: 0xC00CE556



I am writing a Windows 8.1 store app and I need to read a local xml file produces a general error trying to load the file.


Here's the file and code:



XmlDocument doc = new XmlDocument();
doc.LoadXml(@"C:\Users\Martin\Desktop\eventList2.xml");


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<EventList>1</EventList>

No comments:

Post a Comment