Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 868
coure2011 Avatar asked Jan 11 '11 05:01

coure2011


People also ask

Where is IIS Express install directory?

This file is located in the %userprofile%\Documents\IISExpress\config folder or %userprofile%\My Documents\IISExpress\config folder, depending on your OS.


2 Answers

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

like image 85
UpTheCreek Avatar answered Oct 04 '22 16:10

UpTheCreek


The answer marked will help you eliminate the error but it will not get MVC working. The answer to the problem is to add this line to the web.config file in system.webServer:

<modules runAllManagedModulesForAllRequests="true" /> 
like image 26
Rob King Avatar answered Oct 04 '22 16:10

Rob King