I recently moved the My Documents folder from C: to D :. This seems to have violated my ability to debug a web application in Visual Studio. I assume that visual studio creates entries like the following in applicationhost.config, and I wonder where the first physical package for the root virtual directory comes from, since I'm sure this is a problem (I pretty much confirmed that VS is creating a message like the following when opening the solution):
<site name="My.Application-Site" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\myname\Documents\My Web Sites\My.Application-Site" />
</application>
<application path="/My" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="D:\repos\MyCheckout\My\My.Application" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:49924:localhost" />
</bindings>
</site>
When I try to run the application in the debugger, the browser appears with an error, the corresponding bit of which is lower. Note that the path to web.config still uses C: although it seems to know the right place for tracelogfiles:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Config Error Cannot read configuration file
Config File \\?\C:\Users\myname\Documents\My Web Sites\My.Application-Site(2)\web.config
Requested URL http://localhost:50616/My/
Request Tracing Directory D:\users\myname\My Documents\IISExpress\TraceLogFiles\
, , Visual Studio ( IIS) web.config . / - , - , 500.19?
( ) - VS Ultimate 2013 VS Pro 2013 - - ? , .