The problem
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:
- XamarinShellPackage
- TestWindowPackage
- NuGetPackage
- ErrorListPackage
How can I resolve this error?
Logs
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>
What I have tried so far
- At Tools --> Extensions and Updates I have tried to de-install and re-install the extensions. But when I click on the menu item "Extensions and Updates" I get the "Object reference not set" exception?? So I can't try this option.
- I have deinstalled Visual Studio 2015 and reinstalled it. No effect.
- I have done what is suggested in https://connect.microsoft.com/VisualStudio/feedback/details/1123745/setsite-failed-for-package-microsoft-visualstudio-editor-implementation-editorpackage at 13-2-2015 at 16:49. No effect. In fact, the entire exact same folder structure and files (at a quick glance) gets copied back after starting up Visual Studio 2015 again.
So... Any suggestions out there?
Updates to the question
First update
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?
Second update
This is how my Programs and Features look like:
Third update
I have uninstalled and removed as much as I dared.
- Removed everything in AppData\Roaming\Microsoft\VisualStudio\14.0
- Removed everything in AppData\Local\VisualStudio\14.0
- Uninstalled Visual Studio 2015 via Programs and Features (above screenshot)
- Removed the Visual Studio Secondary Installer folder in the Program Files folder altogether
- Removed everything that has to do with Visual Studio 14.0 from Program Files
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.
Fourth update
Steps to be taken (updated from update 3)
- Removed everything in AppData\Roaming\Microsoft\VisualStudio\14.0
- Removed everything in AppData\Local\VisualStudio\14.0
- Remove everything concerning Visual Studio 14.0 from ProgramData
- Uninstalled Visual Studio 2015 via Programs and Features (above screenshot)
- Did everything this article says: https://support.microsoft.com/nl-nl/kb/3016536
- Removed the Visual Studio Secondary Installer folder in the Program Files folder altogether
- Removed anything that has to do with Visual Studio 14.0 from Program Files basically. Anything left over from uninstalling in Programs And Features.
- Uninstall Microsoft Visual C++ redistributable (x86) - 14.0.xxx also
- Uninstalled my Xamarin stuff also
- Hope I didn't forget anything, but bottom line is to totally get rid of anything Visual Studio 2015 related.
- Reinstall Visual Studio 2015 RTM and it should work now. I have to install some third-party stuff again, but at least it works!