I had Visual Studio 2015 RC installed and installed Visual Studio 2015 RTM over it. I couldn\'t find anything on the Internet that said you couldn\'t d
When starting Microsoft Visual Studio Enterprise 15 Preview (version 15.0.25123), I had the same error:
<entry>
<record>27</record>
<time>2016/05/02 12:26:57.451</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Image Service Package]Source:
..
<guid>{1491E936-6FFE-474E-8371-30E5920D8FDD}</guid>
<hr>80131522</hr>
<errorinfo></errorinfo>
</entry>
I try to change the registry key, but it did not work.
It really never worked. Uninstall the previous version, but try it and it worked!
Uninstall Microsoft Visual Studio Ultimate 2015 Preview, (Version 14.0.23310)
It worked (for me :) )
I ran all of the tips in previous answers as well. I do not know if that's necessary or not.
I have Visual Studio 2012, 2013 and 2015 all installed on my machine. After installing Visual Studio 2013 Update 5, I started getting the "package did not load correctly" error in VS 2013.
All I did to get it working was to follow this step:
C:\Users\%username%\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache
Though I have not tried this for Visual Studio 2015, I believe this should solve the problem too. To do this for Visual Studio 2015, 12.0 should be changed to 14.0.
UPDATE
Instead of deleting everything in the folder (as suggested by step 2 above), it is much more safer to rename the folder and allow Visual Studio create a new one. Sometimes, you might have to copy somethings over from the old folder.
I also had a problem in Visual Studio 2015 RC.
There was a problem using menu File → New → Project... throwing an exception.
I followed the answer from Shittu Olugbenga, 2015-08-10, by deleting the content of folder: "C:\Users\\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache".
I restarted Visual Studio and it worked. :)
I've had the same problem with Visual Studio 2015 Community RTC and was able to fix this by deleting everything in:
C:\Users\<your users name>\AppData\Local\Microsoft\VisualStudio\14.0
andC:\Users\<your users name>\AppData\Roaming\Microsoft\VisualStudio\14.0
So I would recommend trying this as you may be able to avoid uninstalling/reinstalling Visual Studio.
One more workaround for Visual Studio 2015 Update 1
c:\Users\{User_Name}\AppData\Local\Microsoft\VisualStudio\14.0\devenv.exe.config
System.Collections.Immutable
, newVersion
should be 1.1.37.0
(not 1.1.36.0
).The redirection should look like this:
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="1.0.27.0-1.1.65535.65535" newVersion="1.1.37.0"/>
</dependentAssembly>
Error from ActivityLog.xml
:
SetSite failed for package [CSharpPackage][Could not load file or assembly 'System.Collections.Immutable, Version=1.1.36.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]:{ at Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService.AbstractPackage`2.Initialize() at Microsoft.VisualStudio.LanguageServices.CSharp.LanguageService.CSharpPackage.Initialize() at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}
You can read more about how to troubleshoot such issues in my blog post How to restore Visual Studio 2015 after the Update 1.