Finally, I can hack it for VS.Net 2015 and its IISExpress configuration. IT cannot configure it βexternallyβ and nothing will work if you continue to change IIS or IISExpress settings outside of VS.Net.
It took me a while to narrow my view of the properties and configurations of VS.Net proj. I found that VS.Net created its own version of "applicationhost.config", which can be found on the page
<myProject.sln path> \ .vs \ config \ applicationhost.config
This is the file in which I had to change the application pool ( applicationPool = "Clr4ClassicAppPool ) -
<sites> <site name="WebSite1" ... ignore this sction if present </site> <site name="myProject" id="2"> <application path="/" applicationPool="Clr4ClassicAppPool"> <virtualDirectory path="/" physicalPath="D:\Source\myProject" /> </application> <bindings> <binding protocol="http" bindingInformation="*:1960:localhost" /> </bindings> </site>
You just need to change the applicationPool (your classic application pool name may be different in this case, get the correct one from one file). Also make sure you update the correct "site" node (the correct URL of the local web application when debugging from VS.Net)
If the problem still exists, install the following:
<applicationDefaults applicationPool="Clr4IntegratedAppPool" />
If there is still a problem, make the above changes and in this file -
C: \ Users \ <youruser> \ Documents \ IISExpress \ Config \ ApplicationHost.config
You may need to restart. Hope this helps.
source share