转:Asp.Net MVC3 无法安装的原因及解决方案

Asp.Net MVC3 无法安装的原因及解决方案

 

    我的机器上安装了VS2010旗舰版,很不幸的前几天打上了VS2010 SP1这一竿子补丁,今天下载了Asp.Net MVC3,悲剧的是根本就无法安装,测试了web installer与本机安装两种方案,均无法解决。

    在Google上G了半天,找到一点点线索,特拿来与大家分享,先看原文:

KB2483190 updates various components of Visual Studio 2010 to add Razor support. It targets pre SP1 version of Visual Studio(10.0.30319) and cannot be applied to SP1(10.0.40219).

    也就是说Asp.Net MV3无法再SP1之上安装,安装的过程中均会产生,KB2483190安装失败这个错误!目前,可以采纳的解决方案就是,避开KB2483190的安装,只安装与MVC3相关的部分内容,不安装Razor语法更新,可以修改解压后的setup文件夹中的"parameterinfo.xml"文件,将其排除,具体方法如下:

1.将AspNetMVC3Setup.exe解压缩;

2.修改AspNetMVC3Setup文件夹下的parameterinfo.xml

3.注释<Exe CanonicalTargetName="VS10-KB2483190-x86"......这一节

4.Successfully installed!

5.看图吧...

Asp.Net <wbr>MVC3 <wbr>无法安装的原因及解决方案
Asp.Net <wbr>MVC3 <wbr>无法安装的原因及解决方案


相关细节请参考asp.net论坛中的帖子。

http://forums.asp.net/p/1667138/4359716.aspx/1?Installation+Problem+with+ASP+NET+MVC+3+RTM+KB2483190+

Razor的使用替代方案请参考asp.net官方博客。

http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx

原文地址:https://www.cnblogs.com/pengkun/p/2421555.html