asp.netasp.net-mvciisweb-hosting

A default document is not configured for the requested URL, and directory browsing is not enabled on the server


I have just deployed my ASP.NET MVC 2 website to a server (using dotnetpanel). But I'm getting this error:

A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

What settings do I need? It's a dotnetpanel-based hosting server.


Solution

  • Which version of IIS is your host running? One thing to try is to put a dummy default.aspx file in the root folder (this will not be used when MVC is working, but can get rid of this problem).