The 'Visual Studio Explorers and Designer Package' package did not load correctly

Jarek Mazur picture Jarek Mazur · Dec 23, 2015 · Viewed 9.9k times · Source

Every time I open solution in Visual Studio 2015 I get following message:

enter image description here

Here are last entries from ActivityLog.xml:

<entry>
   <record>827</record>
   <time>2015/12/23 11:26:13.919</time>
   <type>Error</type>
   <source>VisualStudio</source>
   <description>SetSite failed for package [Visual Studio Explorers and Designers Package][Object reference not set to an instance of an object.]:{   at Microsoft.VSDesigner.VSDMenus.Initialize(IServiceProvider serviceProvider)&#x000D;&#x000A;   at Microsoft.VSDesigner.VSDesignerPackage.VSDesignerPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>
   <guid>{8D8529D3-625D-4496-8354-3DAD630ECC1B}</guid>
   <hr>80004003 - E_POINTER</hr>
   <errorinfo>Object reference not set to an instance of an object.</errorinfo></entry>

I followed suggestions found in a similar question but with no success.

Unfortunately re-installing NuGet via Extensions and Updates doesn't solve the issue.

Answer

RadWes picture RadWes · Oct 28, 2016

If @batressc solution doesn't work, you have to delete the .VS folder in the solution folder also.

So:

  1. Close all VS Windows
  2. Delete folder C:\Users\<username>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
  3. Delete Folder [Solution Folder]\.vs