简体   繁体   English

VS 2015 RTM MVC无法正常工作

[英]VS 2015 RTM MVC not working

Here is the summary of what was going on: 以下是发生的情况的摘要:

I had VS 2015 RC Enterprise installed. 我安装了VS 2015 RC Enterprise。 When I tried to install VS 2015 Community over it, it was blocked because it had enterprise installed. 当我尝试通过它安装VS 2015社区时,它被阻止,因为它已安装了企业版。 Tried to uninstall that, said it is not really installed and if I want to just remove it from list of installed products. 试图将其卸载,并说它并没有真正安装,如果我想从已安装产品列表中删除它。 Uninstalled from command line with /uninstall /force, worked but the community installer still complained. 使用/ uninstall / force从命令行进行了卸载,但是可以,但是社区安装程序仍然抱怨。 Went few rounds with installing VS 2015 Enterprise RTM, uninstalling that, and then trying to install community edition, but it still thought Enterprise was installed. 经过几轮安装VS 2015 Enterprise RTM,先卸载了该版本,然后尝试安装社区版,但它仍然认为已安装Enterprise。 Finally I fired up procmon and started deleting registry entries from VS 2015 that it was referencing and finally got it to install. 最终,我启动了procmon,并开始从VS 2015中删除它正在引用的注册表项,最后将其安装。

So now I am here - things seem to work except MVC support: 所以现在我在这里-除MVC支持外,其他所有功能似乎都可以使用:

MVC错误

I repaired, modified, uninstalled and installed again a few times, no joy. 我修复,修改,卸载并重新安装了几次,没有任何乐趣。 ActivityLog.xml says this: ActivityLog.xml这样说:

<description>CreateInstance failed for package [Microsoft.VisualStudio.Web.Mvc.Package.MvcPackage]</description>
<guid>{B54016DB-B3E6-4960-8262-81772C777DE9}</guid>
<hr>80070002</hr>
<errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Web.Mvc.5.0, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.</errorinfo>

I've run out of ideas as to what else I can do to make this work, any help is very much appreciated. 我没有其他办法可以完成这项工作的想法,非常感谢您的帮助。

Did you ever have earlier releases than RC installed, before Ultimate was renamed to Enterprise? 在将Ultimate重命名为Enterprise之前,您是否安装了比RC更早的版本?

If you have VS RTM (Community, Professional, or Enterprise) installed you can try the following: 如果您安装了VS RTM(社区,专业或企业),则可以尝试以下操作:

  1. Close all instances of Visual Studio 关闭Visual Studio的所有实例
  2. Run the following from a command prompt to forcibly remove MVC: msiexec /x {61A70737-1FE8-E16A-8791-5C8D54990F5B} IGNOREDEPENDENCIES=ALL 从命令提示符处运行以下命令,以强制删除MVC: msiexec / x {61A70737-1FE8-E16A-8791-5C8D54990F5B} IGNOREDEPENDENCIES = ALL
  3. Open appwiz.cpl (Add/Remove Programs), click on Visual Studio 2015, select change and then select the Modify option once the installer is launched. 打开appwiz.cpl(添加/删除程序),单击Visual Studio 2015,选择更改,然后在启动安装程序后选择“修改”选项。

Thanks, Jacques 谢谢,雅克

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM