Aspnet_compiler Unable to match path '/'

.NET 4.5.2, IIS 8.5 for Windows 8.1 x64. I have one ASP.NET website at / localhost /. DEFAULT website has been disabled, a new website has been created with the correct bindings. I am trying to precompile it in place:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319> aspnet_compiler -c -v /

error ASPRUNTIME: Failed to map the path '/'.

I tried the metabase route:

aspnet_compiler -c -m lm/w3svc/2/root

error ASPRUNTIME: Failed to map the path '/'.

I can force it to compile by specifying a physical path, but I do not want to do this because the same application exists on different servers with different physical paths (devs, QA, production). Even metabase paths are all the same. "/" is the same everywhere.

For smiles, I added this to a page on the site to make sure I didn't go crazy:

Response.Write(Server.MapPath("/"));

and got what I expected.

What am I doing wrong?

+4

All Articles