简体   繁体   English

Visual Studio 2015 Update 2-“ Scc显示信息包未正确加载”

[英]Visual Studio 2015 with Update 2 - 'The Scc Display Information package did not load correctly'

Loading a project in Visual Studio 2015 with Update 2 (either automatically when VS start or manual load), I receive an error saying: 'The Scc Display Information package did not load correctly'. 在Visual Studio 2015中使用Update 2加载项目(VS启动时自动加载或手动加载),我收到一条错误消息:“ Scc显示信息包未正确加载”。

在此处输入图片说明

The ActivityLog has: ActivityLog具有:

  <entry>
    <record>541</record>
    <time>2016/04/01 13:43:26.048</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [Scc Display Information][An item with the same key has already been added.]:{   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.GetResult()}</description>
    <guid>{D7BB9305-5804-4F92-9CFE-119F4CB0563B}</guid>
    <hr>80070057 - E_INVALIDARG</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>542</record>
    <time>2016/04/01 13:43:26.050</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [Scc Display Information]</description>
    <guid>{D7BB9305-5804-4F92-9CFE-119F4CB0563B}</guid>
    <hr>80070057 - E_INVALIDARG</hr>
    <errorinfo></errorinfo>
  </entry>

I installed VS2015 with Update 2 over VS2015 with Update 1. I got the error (package ... did no load correctly). 我安装了带有更新2的VS2015而不是带有更新1的VS2015。我得到了错误(程序包...未正确加载)。

I uninstalled VS2015 completely. 我完全卸载了VS2015。 I reinstalled VS2015 with Update 2 completely. 我完全用Update 2重新安装了VS2015。 I still have the same problem about 'The Scc Display Information' package did not load correctly'. 关于“ Scc显示信息”包未正确加载,我仍然有同样的问题。

Update The problem seems similar to the same problem I had with VS2015 Update 1 . 更新该问题似乎类似于我对VS2015 Update 1遇到相同问题 But I think it is not related to NuGet because I have no package with "Scc" in it. 但是我认为它与NuGet无关,因为我没有包含“ Scc”的软件包。 I always associated "Scc" with Visual Source Safe (could it be related ?). 我总是将“ Scc”与Visual Source Safe关联(可以关联吗?)。 I suspect the problem come from the registry but I can't figure out where. 我怀疑问题来自注册表,但我不知道在哪里。

I tried both solutions from this Stack Overflow link without success: 我从此Stack Overflow链接尝试了两种解决方案, 均未成功:

  • run the command: C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\devenv.exe" /resetskippkgs" 运行命令:C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ Common7 \\ IDE \\ devenv.exe“ / resetskippkgs”
  • Delete folder ComponenModelCache (C:\\Users\\XXXX\\AppData\\Local\\Microsoft\\VisualStudio\\XX\\ComponentModelCache) 删除文件夹ComponenModelCache(C:\\ Users \\ XXXX \\ AppData \\ Local \\ Microsoft \\ VisualStudio \\ XX \\ ComponentModelCache)

Any idea how to fix this? 任何想法如何解决这个问题?

This is caused if you have certain MSSCCI-based SCC providers installed. 如果您安装了某些基于MSSCCI的SCC提供程序,则会导致此问题。 You can check your registry's HKLM key: SOFTWARE\\WOW6432Node\\SourceCodeControlProvider 您可以检查注册表的HKLM密钥: SOFTWARE\\WOW6432Node\\SourceCodeControlProvider

If this key is present, that's likely causing the problem. 如果存在此密钥,则很可能会引起问题。

Proper Fix 正确修复

Install the fix from KB3151378 . KB3151378安装此修复程序。

New installations of VS 2015 Update 2 after 4/11/2016 automatically include this fix and no manual installation of a fix is necessary. 2016年4月11日之后的VS 2015 Update 2的新安装将自动包含此修复程序,无需手动安装此修复程序。

Old workaround follows 遵循旧的解决方法

If you don't use any of the SCC providers mentioned there, try renaming the key to SourceCodeControlProvider_ (added underscore). 如果您不使用此处提到的任何SCC提供程序,请尝试将密钥重命名为SourceCodeControlProvider_ (添加下划线)。 The package should then load cleanly. 然后包装应干净地装入。

We're working on shipping a fix for VS2015 Update 2 to resolve the issue even while you have MSSCCI-based SCC providers installed. 即使您已安装基于MSSCCI的SCC提供程序,我们也正在努力为VS2015 Update 2修复此问题,以解决该问题。

(Microsoft Employee) (微软员工)

I have just fixed this problem with VS2015 on Windows7Pro and I DIDN'T have the SOFTWARE\\WOW6432Node\\SourceCodeControlProvider registry key. 我刚刚在Windows7Pro上修复了VS2015的问题,并且我没有SOFTWARE\\WOW6432Node\\SourceCodeControlProvider注册表项。 I took Igor's advice and ONLY cleared the %HOMEPATH%\\AppData\\Local\\Microsoft\\VisualStudio\\14.0\\ComponentModelCache folder. 我接受了Igor的建议,仅清除了%HOMEPATH%\\AppData\\Local\\Microsoft\\VisualStudio\\14.0\\ComponentModelCache文件夹。 When VS2015 restarted, the error was gone and VS 'rebuilt the cache'. VS2015重新启动时,错误消失了,VS“重新构建了缓存”。

Darel 达雷尔

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

相关问题 安装Visual Studio 2015 Update 1给了我很多:“包没有正确加载” - Installing Visual Studio 2015 Update 1 give me lots of : “package did not load correctly” Visual Studio 2013或2015 EditorPackage无法正常加载 - Visual Studio 2013 or 2015 EditorPackage did not load correctly constantly X package 在启动 Visual Studio 2019 时未正确加载 - The X package did not load correctly when starting Visual Studio 2019 CSharpPackage软件包确实在VS2015中正确加载 - The CSharpPackage package did load correctly in VS2015 如何修复 Microsoft Visual Studio 错误:“包未正确加载”? - How can I fix the Microsoft Visual Studio error: "package did not load correctly"? Visual Studio 错误:“Microsoft.VisualStudio.Editor.Implementation.EditorPackage”包未正确加载 - Visual Studio Error: The "Microsoft.VisualStudio.Editor.Implementation.EditorPackage" package did not load correctly IIS未加载Visual Studio 2015中的最新更改 - IIS did not load the latest changes in Visual Studio 2015 Visual Studio 2015更新3无法读取NuGet程序包 - Visual Studio 2015 update 3 cannot read NuGet package Visual Studio XML 编辑器 Package 未正确加载(Blend for Visual Studio 2022 Community Edition) - Visual Studio XML Editor Package didn't load correctly (Blend for Visual Studio 2022 Community Edition) 模板.Net Core不显示Visual Studio 2015 - Template .Net Core Not Display Visual Studio 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM