我刚把我的网站从MVC 4升级到了MVC 5。
现在当我想在服务器上运行它,而不是在我的开发机器上时,它无法工作。
我认为这是因为我需要在服务器上安装MVC 5库,但我找不到它们。
我下载了WebMatrix 3,希望它提供了一种安装方法,但它只能让我安装MVC 4。
我应该安装什么才能运行ASP.NET MVC 5应用程序?
(不安装Visual Studio 2013)
编辑: 我禁用了自定义错误并出现了以下错误:
Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
编辑2:我发现问题是由于我的其中一个依赖项使用了razor的2.0.0.0版本所致。