【发布时间】:2018-09-26 05:37:36
【问题描述】:
我想安装 ASP.Net MVC 3,但它给了我错误 (0x80070643) 和回滚安装。
我卸载了 Visual Studio 2017,现在我只有 VS 2012。
我也附上了屏幕截图。
我尝试使用 VS2012 修复安装 ASP.Net mvc3,但在那里也失败了。
我也尝试在 regedit 键中使用尾随反斜杠,但没有成功。
任何专家意见。
【问题讨论】:
标签: asp.net-mvc
我想安装 ASP.Net MVC 3,但它给了我错误 (0x80070643) 和回滚安装。
我卸载了 Visual Studio 2017,现在我只有 VS 2012。
我也附上了屏幕截图。
我尝试使用 VS2012 修复安装 ASP.Net mvc3,但在那里也失败了。
我也尝试在 regedit 键中使用尾随反斜杠,但没有成功。
任何专家意见。
【问题讨论】:
标签: asp.net-mvc
Error when installing ASP.NET MVC 3 Tools Update
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>
【讨论】: