I get the error
Access to the path \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v1.1.4322\\Temporary ASP.NET Files\\cbnonreg\\fc933fca\\bbf91eea\" is
I solved the problem by deleting my local workspace and performing a Get from TFS.
Things that didn't work: running VS as admin, restarting VS, killing the built-in ASP.NET IIS dev server program, doing a clean and rebuild, rebooting computer.
I got this error because I had turned on all "Common Language Runtime Exceptions" in the "Exception Settings" window of Visual Studio.
This must be one of the exceptions that fires as part of the normal flow of ASP.NET. If that's your problem (or if you don't know what the "Exception Settings" window does and you want to reset it to default) you should probably open the "Exception Settings" window and click the "Restore the list to the default settings" button at the top, or at least uncheck the exceptions you don't want the debugger to break on.
In my case the error was followed by further exceptions if I had continued e.g. "mscorlib.dll not loaded". Based on this I found the working solution here: https://stackoverflow.com/a/27446877.
"Goto Tools, Options, Debugging, General, Enable Just My Code".
Root cause analysis: I realized that I attempted to test Release config under IIS Express (no debugging then of course) after prior attempts on Debug config. I was also playing with Web.config transform for Release. VS asked me to disable Just My Code on app launch. When I wanted to turn back to Debug, I started to receive referred errors. None of solution proposals from this thread were successful.
On Windows 8 you get this error
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Start installing ASP.NET (4.0.30319.17929).
This option is not supported on this version of the operating system. Administr
ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Win
dows Features On/Off" dialog, the Server Manager management tool, or the dism.e
xe command line tool. For more details please see http://go.microsoft.com/fwlin
k/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929).
To fix the error from above (Windows 8) run this command:
dism /online /enable-feature /featurename:IIS-ASPNET45
If you hit this error while trying to debug a app in visual studio, try running visual studio as an administrator. It will elevate the perms used and might solve the issue.