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

coure2011 picture coure2011 · Jan 11, 2011 · Viewed 168k times · Source

I have just deployed my asp.net mvc-2 website to a server (using dotnetpanel). But getting this error

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

What settings I needs? Its dotnetpanel based hosting server.

Answer

UpTheCreek picture UpTheCreek · Jan 11, 2011

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).