'Cant Host .net application to iis server

I was trying to publish dotnet MVC application to IIS .I created a site in that and opened in the browser .but it looks like this this is the screenshot of site running how to run my app on IIS.



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.

image

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