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 do this. I don't know if this is relevant to the problem.
Unfortunately, when I started up Visual Studio 2015 RTM for the first time after restarting it popped up message boxes with:
"The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly"
Also:
How can I resolve this error?
It said to look in the ActivityLog.xml. I couldn't find Microsoft.VisualStudio.Editor.Implementation.EditorPackage.
But for XamarinShellPackage it said:
<entry>
<record>339</record>
<time>2015/07/21 13:01:54.011</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [XamarinShellPackage]</description>
<guid>{2D510815-1C4E-4210-BD82-3D9D2C56C140}</guid>
<hr>80070057 - E_INVALIDARG</hr>
<errorinfo>'providers' cannot contain a null (Nothing in Visual Basic) element.
Parameter name: providers</errorinfo>
</entry>
<entry>
<record>340</record>
<time>2015/07/21 13:01:54.013</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [XamarinShellPackage]</description>
<guid>{2D510815-1C4E-4210-BD82-3D9D2C56C140}</guid>
<hr>80070057 - E_INVALIDARG</hr>
<errorinfo>'providers' cannot contain a null (Nothing in Visual Basic) element.
Parameter name: providers</errorinfo>
</entry>
For TestWindowPackage:
<entry>
<record>394</record>
<time>2015/07/21 13:02:02.751</time>
<type>Error</type>
<source>TestWindowPackage</source>
<description>TestWindowPackage.Initialize failed with exception:


System.NullReferenceException:
Object reference not set to an instance of an object.

at Microsoft.VisualStudio.TestWindow.VsHost.TestWindowPackage.Initialize()


PackageContainer loaded: False 
</description>
</entry>
<entry>
<record>395</record>
<time>2015/07/21 13:02:02.752</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [TestWindowPackage]</description>
<guid>{BFC24BF4-B994-4757-BCDC-1D5D2768BF29}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
For NuGetPackage:
<entry>
<record>405</record>
<time>2015/07/21 13:02:04.096</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [NuGetPackage]</description>
<guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
<entry>
<record>406</record>
<time>2015/07/21 13:02:04.096</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [NuGetPackage]</description>
<guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
For ErrorListPackage it said:
<entry>
<record>409</record>
<time>2015/07/21 13:02:04.624</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [ErrorListPackage]</description>
<guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid>
</entry>
<entry>
<record>410</record>
<time>2015/07/21 13:02:04.629</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [ErrorListPackage]</description>
<guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
So... Any suggestions out there?
I just tried to load a project and... Something is very wrong. It can't load a bunch of packages like: "CSharpPackage, IntegrationPackage, MigrationPackage, FileIndicatorPackage, etc..." and the Solution Explorer is completely blank! What is going on?
This is how my Programs and Features look like:
I have uninstalled and removed as much as I dared.
I don't want to mess up my Visual Studio 2013 installation. Visual Studio 2015 still can't load the packages above!
So if anyone has more information as to which programs exactly can be uninstalled from the above screenshot, I would be very happy.
Steps to be taken (updated from update 3)
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With