'Cant Host .net application to iis server
Solution 1:[1]
It is not recommended to enable directory browsing:
Click your website in IIS ? select directory browsing module? click "Disable" in the right window.
When directory browsing is not enabled, if you want to configure a default display page in Asp.net: select the "Website" node ? double-click the "Default Document" module ? "Add" the name of a default document to be displayed, and move ( Move up, move down).
But in MVC, you only need to configure the route without setting the default page.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | JennyDai |