我刚刚将我的网站从MVC 4更新为MVC 5.
现在,当我想在我的Web服务器而不是我的开发机器上运行它时,它不起作用.
它认为这是因为我需要在服务器上安装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)
Run Code Online (Sandbox Code Playgroud)
编辑2: 我发现问题是由于我的一个依赖项使用的是版本2.0.0.0的razor.