我遇到了asp.net mvc 3安装错误。 0x80070643

时间:2018-09-26 05:37:37

标签: asp.net-mvc

我想安装ASP.Net MVC 3,但它给我错误(0x80070643)和回滚安装。

我卸载了Visual Studio 2017,现在只有VS 2012。

我也附上了屏幕截图。

我试图用VS2012修复程序安装ASP.Net mvc3,但在那里也失败了。

我也尝试在regedit密钥中添加反斜杠,但没有成功。

任何专家的意见。

enter image description here

1 个答案:

答案 0 :(得分:0)

Error when installing ASP.NET MVC 3 Tools Update

Can't Install Asp.net MVC 3

Error on Installation of MVC3 at Windows 7 -32 Bit Operating System

如果以上链接对您不起作用,请尝试以下操作;这将永远为您服务。

我按照以下步骤解决了该问题;

1. copy following directory from your colleague/friend computer to same path on your machine who have properly installed ASP.Net MVC3. C:\Program Files (x86)\Microsoft ASP.NET
(make sure they have ASP.Net MVC 3 folder inside with assemblies) 

2. reference following dlls from these folder into your mvc project;
System.Web.Mvc from C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies 
System.Web.WebPages from C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies
System.Web.WebPages.Razor from C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies
System.Web.Helpers from C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies

3. apply  assemblybinding in web.config 

<runtime>
 <assemblyBinding>
 <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="your mvc dll version you need 3.0.0.0 or 3.0.0.1"/> 
      </dependentAssembly>
 </assemblyBinding>
  </runtime>