安装 ASP.NET MVC 4.0.4
Install ASP.NET MVC 4.0.4
我有一个项目的生产服务器,我尝试为具有相同环境的同一个项目构建一个测试服务器。
为此,我需要在 测试服务器 上安装(也就是说, 没有 VS 或任何开发工具,例如包管理器,等)安装在 ASP.NET MVC 的产品服务器版本上的相同版本:4.0.4xxx.
我搜索下载了最新的 ASP.NET MVC 4 安装程序,唯一下载的 MS proposes 是 ASP.NET MVC 4 for Visual Studio 2010 SP1
(不太明白这里有什么 VS 2010 - 它应该只适用于 VS 吗?!) - 安装后我导航到 C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies
并且 System.Web.Mvc.dll
版本是 4.0.207xxx.
我在哪里可以找到 ASP.NET MVC 4.0.4xxx?
更多信息:
安装的 .NET 是
ASP.NET 似乎是 4.0.0.0:
还有
最后,在 localhost 中,我得到以下错误:
自 ASP.NET MVC 版本 3.0.20105.1
起,Microsoft.AspNet.Mvc DLL has been available through NuGet. This means your application should include Microsoft.AspNet.Mvc
version 4.0.40804
在您的应用程序发布时作为其分发的一部分(在 bin 文件夹中)。
您唯一需要在生产或测试服务器上安装的是 .NET Framework Redistributable 4.0+,以便 ASP.NET MVC 4 正常运行。
请注意 .NET Framework 4.0 is no longer supported, so it is recommended to use at least Microsoft .NET Framework 4.5.2。 .NET Framework 4.0+ 的所有版本都是就地升级,因此所有更高版本都应该适用于您的应用程序而无需任何更改。
还安装了 broke compatibility with 4.0.0.0, that will need to be applied to your server if it is not already installed. This updates MVC 4 assembly version from 4.0.0.0 to 4.0.0.1, so it is a breaking change for applications that are compiled against 4.0.0.0. Since your application is looking for 4.0.0.1 (as it should) that means your application is compiled with the security update, but the server needs the security update 用于 MVC 4 的安全更新。
我有一个项目的生产服务器,我尝试为具有相同环境的同一个项目构建一个测试服务器。
为此,我需要在 测试服务器 上安装(也就是说, 没有 VS 或任何开发工具,例如包管理器,等)安装在 ASP.NET MVC 的产品服务器版本上的相同版本:4.0.4xxx.
我搜索下载了最新的 ASP.NET MVC 4 安装程序,唯一下载的 MS proposes 是 ASP.NET MVC 4 for Visual Studio 2010 SP1
(不太明白这里有什么 VS 2010 - 它应该只适用于 VS 吗?!) - 安装后我导航到 C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies
并且 System.Web.Mvc.dll
版本是 4.0.207xxx.
我在哪里可以找到 ASP.NET MVC 4.0.4xxx?
更多信息:
安装的 .NET 是
ASP.NET 似乎是 4.0.0.0:
还有
最后,在 localhost 中,我得到以下错误:
自 ASP.NET MVC 版本 3.0.20105.1
起,Microsoft.AspNet.Mvc DLL has been available through NuGet. This means your application should include Microsoft.AspNet.Mvc
version 4.0.40804
在您的应用程序发布时作为其分发的一部分(在 bin 文件夹中)。
您唯一需要在生产或测试服务器上安装的是 .NET Framework Redistributable 4.0+,以便 ASP.NET MVC 4 正常运行。
请注意 .NET Framework 4.0 is no longer supported, so it is recommended to use at least Microsoft .NET Framework 4.5.2。 .NET Framework 4.0+ 的所有版本都是就地升级,因此所有更高版本都应该适用于您的应用程序而无需任何更改。
还安装了 broke compatibility with 4.0.0.0, that will need to be applied to your server if it is not already installed. This updates MVC 4 assembly version from 4.0.0.0 to 4.0.0.1, so it is a breaking change for applications that are compiled against 4.0.0.0. Since your application is looking for 4.0.0.1 (as it should) that means your application is compiled with the security update, but the server needs the security update 用于 MVC 4 的安全更新。