title: IIS Express 8 - Cannot write configuration file
body: <p>I am trying to use IIS Express 8 for a MVC site in VS2012. I am getting the following error whenever I attempt to create the site:</p>
  
  <blockquote>
    <p>Filename:
    \?\C:\Users\xxxxxx\Documents\IISExpress\config\applicationHost.config<br>
    Error: Cannot write configuration file</p>
  </blockquote>
  
  <p>Is there some way to force IIS Express to use a different location for the config &amp; logs folders? I understand I can point to a different location when I am running iisexpress.exe from the command line, but I have no control over this when using Visual Studio.</p>
  
  <p>Alternatively, has anyone got any suggestions why the error is happening? (Side note: My laptop is in a corporate environment which has some stupid encryption on the "Documents" folder, however I haven't had any problems with other software that saves to this location. I also have given the "Everyone" group full access to the folder.)</p>
  
  <p><strong>EDIT - After following the instructions at <a href="http://learn.iis.net/page.aspx/1286/iis-80-express-readme/">http://learn.iis.net/page.aspx/1286/iis-80-express-readme/</a> I still can't seem to get this working. I've tried the following:</strong></p>
  
  <ul>
  <li>Added HKCU\Software\Microsoft\IISExpress\CustomUserHome registry key pointing to my alternate directory</li>
  <li>Added HKCU\Software\Microsoft\IISExpress\8.0\CustomUserHome registry key pointing to my alternate directory</li>
  <li>Added HKLM\Software\Microsoft\IISExpress\CustomUserHome registry key pointing to my alternate directory</li>
  <li>Added HKLM\Software\Microsoft\IISExpress\8.0\CustomUserHome registry key pointing to my alternate directory</li>
  <li>Setting the %IIS_USER_HOME% environment variable pointing to my alternate directory.</li>
  </ul>
  
  <p>Any other suggestions?</p>