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

前端 未结 12 871
时光说笑
时光说笑 2020-12-13 03:37

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          


        
12条回答
  •  -上瘾入骨i
    2020-12-13 04:31

    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:

    
    

提交回复
热议问题