加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-2 – 未针对请求的URL配置默认文档,并且未在服务器

发布时间:2020-12-15 18:51:03 所属栏目:asp.Net 来源:网络整理
导读:我刚刚部署我的asp.net mvc-2网站到服务器(使用dotnetpanel)。但得到这个错误 A default document is not configured for the requested URL,and directory browsing is not enabled on the server. 我需要什么设置?它的基于dotnetpanel的托管服务器。 解决
我刚刚部署我的asp.net mvc-2网站到服务器(使用dotnetpanel)。但得到这个错误
A default document is not configured for the requested URL,and directory browsing is not enabled on the server.

我需要什么设置?它的基于dotnetpanel的托管服务器。

解决方法

哪个版本的IIS是你的主机运行?一个尝试是在根文件夹中放置一个虚拟的default.aspx文件(这将不会用于当MVC工作,但可以摆脱这个问题)。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读