在iis7上部署mvc4 webapp [英] Deploy mvc4 webapp on iis7

查看:85
本文介绍了在iis7上部署mvc4 webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的开发计算机上部署了该站点(使用iis 7.5的Win7)并且可以访问该网站。

但是当我部署到服务器时它无法工作(带有iis7的Windows Server 2008) 。

它会显示

HTTP错误403.14 - 禁止



Web服务器配置为不列出这个目录的内容。



我启用文件浏览,然后它只显示文件夹目录,但不显示默认页面。

I deploy the site on my development computer(Win7 with iis 7.5) and the website can be visited.
But it can't work when I deploy to server(windows server 2008 with iis7).
It will show
HTTP Error 403.14 - Forbidden

The Web server is configured to not list the contents of this directory.

I enable the file browse,and then it just show the folder directory, but not the default page.

推荐答案

您查看了文档吗?



Did you check the documentation?

引用:

出现此问题的原因是网站未启用目录浏览功能,并且未配置默认文档。

This problem occurs because the Web site does not have the Directory Browsing feature enabled, and the default document is not configured.



http://support.microsoft.com/kb/942062 [ ^ ]


这篇关于在iis7上部署mvc4 webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆