title: aspnet_compiler Failed to map the path '/'
body: <p>.NET 4.5.2, IIS 8.5 on Windows 8.1 x64. I have a single ASP.NET web site at /localhost/. The DEFAULT website is disabled, a new site with was created with the right bindings. I am trying to pre-compile it in place:</p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework64\v4.0.30319&gt; aspnet_compiler -c -v /
  
  error ASPRUNTIME: Failed to map the path '/'.
  </code></pre>
  
  <p>I tried the metabase-path route:</p>
  
  <pre><code>aspnet_compiler -c -m lm/w3svc/2/root
  
  error ASPRUNTIME: Failed to map the path '/'.
  </code></pre>
  
  <p>I Can get it to compile by specifying the physical path but I don't want to do that because this same application exists on different servers with different physical paths (devs, QA, production). Not even the metabase paths are all the same. "/" is the same everywhere.</p>
  
  <p>For grins I added this to a page in the site to make sure i wasn't losing my mind:</p>
  
  <pre><code>Response.Write(Server.MapPath("/"));
  </code></pre>
  
  <p>and got what I expected.</p>
  
  <p>What am I doing wrong?</p>