默认文档未配置为请求的URL,和目录浏览未在服务器上启用 [英] A default document is not configured for the requested URL, and directory browsing is not enabled on the server
本文介绍了默认文档未配置为请求的URL,和目录浏览未在服务器上启用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚部署了我的asp.net MVC-2网站(使用dotnetpanel)的服务器。但得到这个错误
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.
什么设置我的需求?它基于dotnetpanel托管服务器。
What settings I needs? Its dotnetpanel based hosting server.
推荐答案
哪个版本的IIS是你的主机上运行?有一件事是尝试把一个虚拟Default.aspx文件在根文件夹(MVC时工作,这将无法使用,但可以摆脱这个问题)。
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).
这篇关于默认文档未配置为请求的URL,和目录浏览未在服务器上启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文