34

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'.

enter image description here

The ActivityLog has:

  <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).

I uninstalled VS2015 completely. I reinstalled VS2015 with Update 2 completely. I still have the same problem about 'The Scc Display Information' package did not load correctly'.

Update The problem seems similar to the same problem I had with VS2015 Update 1. But I think it is not related to NuGet because I have no package with "Scc" in it. I always associated "Scc" with Visual Source Safe (could it be related ?). 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:

  • run the command: 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)

Any idea how to fix this?

Community
  • 1
  • 1
Eric Ouellet
  • 10,996
  • 11
  • 84
  • 119
  • I am also having the same issue. and some times after loading the solution the solution explorer stays blank. – last-Programmer Apr 01 '16 at 15:39
  • Deleting folder ComponenModelCache solved it for me. I suspect it was caused by installing an update for Intel Parallel Studio. – Dženan Jan 06 '17 at 19:59

2 Answers2

36

This is caused if you have certain MSSCCI-based SCC providers installed. You can check your registry's HKLM key: SOFTWARE\WOW6432Node\SourceCodeControlProvider

If this key is present, that's likely causing the problem.

Proper Fix

Install the fix from 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.

Old workaround follows

If you don't use any of the SCC providers mentioned there, try renaming the key to SourceCodeControlProvider_ (added underscore). 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.

(Microsoft Employee)

Andrew Arnott
  • 80,040
  • 26
  • 132
  • 171
  • 1
    Big shout out to Danny Perschonok who helped us figure out the root cause. – Andrew Arnott Apr 02 '16 at 02:38
  • 2
    Have only two entries here, “Microsoft Visual SourceSafe” and “Microsoft Visual SourceSafe (Internet)”. How’s that “3rd party”? Both providers are parts of Visual Studio 2008, I keep it because WinCE targets aren’t supported by recent VS versions. – Soonts Apr 03 '16 at 17:26
  • 1
    @Soonts, Just want to say that I had the exact same entries as you. I also though that Visual Source Safe should not ne considered as third party, but Microsoft product instead. I don't understand why Andrew talk about 3rd party? It sounds more a bug in the Update 2 than anything else. But one thing sure, its solution works perfectly !!! – Eric Ouellet Apr 03 '16 at 19:36
  • 1
    Correct: It really had nothing to do with third party. Any MSSCCI provider does it. It is a bug in Update 2. – Andrew Arnott Apr 03 '16 at 21:35
  • 2
    Same problem but I don't have the key SOFTWARE\WOW6432Node\SourceCodeControlProvider in the registry , any other solution? – jersiovic Apr 04 '16 at 10:17
  • 2
    @jersiovic, Be Sure to check under: HKLM (HKEY_LOCAL_MACHINE) not HKCU. It would be weird if you don't have anything under that key... ??? – Eric Ouellet Apr 04 '16 at 15:29
  • 1
    When the fix comes available do we need to remove the underscore again before applying the fix? – HerbalMart Apr 08 '16 at 08:51
  • 1
    I still don't see a key called SourceCodeControlProvider even in HKEY_LOCAL_MACHINE. – ElectroBit Apr 09 '16 at 17:34
  • @HerbalMart I would suggest you remove the workaround when you install the fix but it isn't a requirement. – Andrew Arnott Apr 10 '16 at 03:12
  • That key didn't exist. Final y I solved the issue reinstalling VS – jersiovic Apr 11 '16 at 07:05
  • 1
    I had similar issue in VS2015 update 3 (so, this answer is not applicable). I solved it by clearing the `%HOMEPATH%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache` folder. – Igor Jun 01 '18 at 16:51
1

I have just fixed this problem with VS2015 on Windows7Pro and I DIDN'T have the SOFTWARE\WOW6432Node\SourceCodeControlProvider registry key. I took Igor's advice and ONLY cleared the %HOMEPATH%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache folder. When VS2015 restarted, the error was gone and VS 'rebuilt the cache'.

Darel

Filip Hazubski
  • 1,668
  • 1
  • 17
  • 33
D. Mesher
  • 21
  • 1