将MVC3应用程序发布到IIS错误 - Web服务器配置为不列出此目录的内容 [英] Publishing MVC3 app to IIS error - The Web server is configured to not list the contents of this directory

查看:550
本文介绍了将MVC3应用程序发布到IIS错误 - Web服务器配置为不列出此目录的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的网站发布到C:\inetpub \wwwroot \ Sem_App并创建了一个网站,其物理路径为C:\inetpub \wwwroot \ Sem_App和端口84.当我浏览网站时在 http:// localhost:84 / 我收到以下错误。

I published my website to "C:\inetpub\wwwroot\Sem_App" and created a website with physical path "C:\inetpub\wwwroot\Sem_App" and port 84. When I browse the website on http://localhost:84/ I get the following error.

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.

我不想列出目录的内容,我想运行使用的默认页面在VS 2010的调试模式下运行。有人知道发生了什么吗?

I do not want to list contents of the directory anyways, I want to run the default page that used to run in debugging mode of VS 2010. Anybody know what's going on?

我试过运行这个命令并重新启动iis但它没有工作
C: \ Windows \ microsoft.NET \ Framework64 \v4.0.30319 \ aspnet_regiis.exe -ir

I tried running this command and restarted iis but it didn't work C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir

推荐答案

你可以需要启用 目录浏览选项在IIS中。查看ASP.NET MVC部署到IIS 6的以下链接。( For .Net 4.0

You may need to enable directory browsing option in IIS. Check out the below link for ASP.NET MVC deployment to IIS 6. (For .Net 4.0)

http://www.codefrenzy.net/2011/10 / 19 / deploying-asp-net-mvc-3-to-iis-6 /

这篇关于将MVC3应用程序发布到IIS错误 - Web服务器配置为不列出此目录的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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