升级到ASP.NET MVC 5错误403.14禁止访问 [英] Upgrade to ASP.NET MVC 5 Error 403.14 Forbidden

查看:442
本文介绍了升级到ASP.NET MVC 5错误403.14禁止访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我升级从ASP.NET MVC 4至5 MVC,和我的网站停止工作。从互联网访问它给了一个403 - 禁止访问:访问被拒绝。从该网站访问VM它给了消息错误403.14禁止访问Web服务器配置为不列出此目录的内容。此外,事件日志中说,有一个错误加载System.Web.Mvc v 5.很多问题的答案对于这样的东西说你必须重新注册ASP.NET,但不允许IIS 8.

I upgraded from ASP.NET MVC 4 to MVC 5, and my site stopped working. Accessing it from the internet gave a 403 - Forbidden: Access is Denied. Accessing it from the VM with the site gave the message Error 403.14 Forbidden The Web server is configured to not list the contents of this directory. In addition, the event log said there was an error loading System.Web.Mvc v 5. A lot of the answers for stuff like this said you had to re-register ASP.NET, but that is not allowed for IIS 8.

推荐答案

在将任何其他解决方案检查,如果你有净剃须刀SDK(MVC 5)在计算机上安装与否。
在这里下载
尽管VS已经安装了它自己的环境,但它仍然需要进行机上分别安装,使.NET开始认识到MVC结构。

Before going to any other solution check that if you have .Net Razor SDK(MVC 5) is installed on your machine or not. Download it from HERE. Although VS has already installed it for its own environment but it's still needed to be installed separately on machine so that .NET start recognizing MVC structure.

这篇关于升级到ASP.NET MVC 5错误403.14禁止访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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