title: Why is this file saved by default to the IIS Express folder?
body: <p>I've got this code that saves a test file in what I assumed would be my project's bin folder:</p>
  
  <pre><code>XDocument doc = XDocument.Parse(stringifiedXML);
  doc.Save("testXMLFile.xml"); 
  </code></pre>
  
  <p>...but it actually ended up in C:\Program Files (x86)\IIS Express</p>
  
  <p>Yes, IIS Express is hosting this Web API app yet, when the app is run from Visual Studio, I would expect the file to be saved to the project's bin folder. Why this?</p>
  
  <p>I can designate just where I want the file to be saved like so:</p>
  
  <pre><code>// In PlatypusGlobals.cs
  public static string appDataFolder = HttpContext.Current.Server.MapPath("~/App_Data/");
  
  doc.Save(string.Format("{0}testXMLFile2.xml", PlatypusGlobals.appDataFolder));
  </code></pre>
  
  <p>...but would still prefer a "raw save" to go to the bin directory. Is this configurable, or do I just have to live with files being saved to the IIS Express folder?</p>