MVC4 HTTP 错误 403.14 - 禁止 [英] MVC4 HTTP Error 403.14 - Forbidden

查看:36
本文介绍了MVC4 HTTP 错误 403.14 - 禁止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个 .net4.5 ASP.NET MVC4 Web 应用程序,它在本地运行良好(IIS Express 和开发服务器),但是一旦我将它部署到我的 Web 服务器,它就会抛出 403 错误.我已经在服务器上安装了 .Net 4.5RC,甚至尝试了aspnet_regiis -i每个人都建议解决以前版本的 MVC/.Net 问题,但没有帮助.

I have build a .net4.5 ASP.NET MVC4 web app which works fine locally (IIS Express & dev server) but once i deploy it to my web server it throws the 403 error. I have installed .Net 4.5RC on the server and even tried the aspnet_regiis -i bit that everyone recommended for their issues with previous versions of MVC/.Net but it did not help.

有什么想法吗?

编辑:有关情况的更多信息.服务器是 32 位的,我还有 4 个其他 MVC3 应用程序可以正常工作.只是我的 MVC4 应用程序不起作用.

EDIT: More info about the situation. The server is 32bit and I have 4 other MVC3 applications that work fine. It is just my MVC4 app that is not working.

推荐答案

尝试

<system.webServer>
   <modules runAllManagedModulesForAllRequests="true"/> 
 </system.webServer>

通过

https://serverfault.com/questions/405395/unable-to-get-anything-except-403-from-a-net-4-5-website

这篇关于MVC4 HTTP 错误 403.14 - 禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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