I think IIS Express probably has 2 <application>
-blocks and both will be pointing to the same physicalPath.
Go to the IIS Express config file in: My DocumentsIISExpressconfigapplicationhost.config
Search for NewProjectName
Change the physicalPath for the root application to something else. Point it to an empty folder.
Should look something like this:
<site name="NewProjectName" id="1">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="c:Temp" />
</application>
<application path="/NewProjectName" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="c:sourcecodeNewProjectName" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:51123:localhost" />
</bindings>
</site>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…