title: How do I use a relative path in XDocument.Load?
body: <p>I have an XML file named PageData.xml in my App_Data folder. I want to populate an XDocument with this file using XDocument.Load.</p>
  
  <p>If I supply the full physical path it works, i.e.:</p>
  
  <pre><code>XDocument vXDoc = XDocument.Load("/Work/Project/Web/100413 Dev/App_Data/PageData.xml");
  </code></pre>
  
  <p>...where "Work" is a folder on my C: drive.</p>
  
  <p>If I try a relative path like this, though, I get a DirectoryNotFoundException:</p>
  
  <pre><code>XDocument vXDoc = XDocument.Load("AppData/PageData.xml");
  </code></pre>
  
  <p>"Could not find a part of the path 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\AppData\PageData.xml'."</p>
  
  <p>This is obviously wrong, but there must be an easy way to set the correct relative path? What am I overlooking? Your help is appreciated.</p>