I can\'t solve this problem
I suggest I have to change c:\\Windo
I've already found the solution. I just had to edit C:\Users\Administrator\Documents\IISExpress\config\applicationhost.config
file, by adding my site to <sites>
node.
<IISUrl>
of .csproj
with
<CustomServerUrl>
.Edit :
netsh http add iplisten 0.0.0.0
and see whether it solves the issue.Hope these would help someone still looking for a way.
You can opt to install IIS locally and edit a couple of tags on .csproj File.
Open you csproj file and go to section <VisualStudio>
then find tag <UseIIS>True</UseIIS>
it must be set as true, then go to tag: <IISUrl>
and set up with the URL address where the application will be hosted for testing:
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>False</AutoAssignPort>
<DevelopmentServerPort></DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
**<IISUrl>http://localhost/myWebSiteAppSample</IISUrl>**
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
And that is. Now you can load your project normally.
I don't know why, by my applicationhost.config
file was completely missing from my C:\Users\Administrator\Documents\IISExpress\config\
folder.
Copy/pasting C:\inetpub\history\applicationhost.config
into that folder seemed to fix the problem for me.
Got the idea from here.
I know this is probably a rare occurrence, but figured I'd put it here:
My csproj
file was set to "read only" (Don't ask me how I managed that), but after I turned off "read only" access, everything was fine. (VS2017)