Open mageshsankar opened 3 years ago
It seems you are running this on arm Machine ( my assumption) but regarding the issue you have not supplied full path that's reason it's generating exception you may get path of executables using assembly.getexecuting assembly.location and then file name it should work fine
Have you tried passing the full path of the file to XDocument.Load
? Otherwise, Load
will internally assume the file's root prefix path should be the location of wherever the executing process is (although I'm not sure why C:\Windows\SysWOW64
is showing up as the executing process location).
Description
I have published WPF application in Store SampleBrowser, and it fails to load an document file(Books.xml - Build Action : Content, Copy to output directory: Copy Always) so application crash on loading xml document. Please find the below code how we have loaded xml document and exception screenshot below:
XDocument xDocument = XDocument.Load(@"Assets/TileView/Books.xml");