问题描述
可能重复:结果
我想一个基本的MVC 3应用程序部署到我的2008 R2服务器运行IIS 7.5,但收到一个403 - 禁止错误试图查看我的网页
I am trying to deploy a basic MVC 3 application to my 2008 R2 Server running iis 7.5 but receive a "403 - Forbidden" error trying to view my page.
我启用了匿名身份验证,以及我的应用程序池在集成管道模式下使用ApplicationPoolIdentity与.NET 4.0。我不知道什么是用户的ApplicationPoolIdentity是的,但我已经给IUSR读/写权限的网站文件夹中。
I have anonymous authentication enabled, and my app pool is using the "ApplicationPoolIdentity" in integrated pipeline mode with .net 4.0. I don't know what "user" the "ApplicationPoolIdentity" is, but I've given IUSR read/write rights to the website folder.
我没有到位任何其他身份验证方案,服务器甚至没有在域中运行。
I don't have any other authentication schemes in place, the server is not even running in a domain.
如果我把默认的HTML页面在那里,它加载的罚款。这只是我的方法/控制器,我不能发挥作用。
If I put a default html page in there, it loads fine. It's only my methods/controllers that I cannot get to function.
我还能如何解决此?
谢谢,
推荐答案
运行为aspnet_regiis -i
。通常情况下,我发现你需要做的是让4.0的应用程序工作。打开命令提示符:
Run aspnet_regiis -i
. Often I've found you need to do that to get 4.0 apps to work. Open a command prompt:
cd \
cd Windows\Microsoft .NET\Framework\v4.xxx.xxx
aspnet_regiis -i
一旦它安装和注册,请确保您的应用程序使用被设置为.NET 4.0的应用程序池。
Once it has installed and registered, make sure you application is using an application pool that is set to .NET 4.0.
这篇关于403 - 禁止对IIS7.5基本MVC 3部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!