Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

XDocument.Load() in App

$
0
0
I'm creating a site provisioning app and have an xml file with all the pertinent information regarding the files i'll be uploading to the Host Web. I'm trying to load this xml by doing XDocument.Load("/{file location in app}") and it errors out every time. I've even tried HttpContext.Curent.Server.MapPath() but the HttpContext.Current is null. Any ideas on how to get this to work?

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>