Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The 'EurekaPackage' package did not load correctly - Visual Studio 2013

I installed VS 2013 Premium. On first launch I get this error

Microsoft Visual Studio

The 'EurekaPackage' package did not load correctly.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file '\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml'.

Continue to show this error message? Yes No

Below a copied from ActivityLog.xml

<entry>
    <record>83</record>
    <time>2014/03/14 14:51:59.561</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [File Change Manager Package]</description>
    <guid>{4825B9A3-93E2-4327-9044-41F72EE7E5C9}</guid>
  </entry>
  <entry>
    <record>84</record>
    <time>2014/03/14 14:51:59.577</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>End package load [File Change Manager Package]</description>
    <guid>{4825B9A3-93E2-4327-9044-41F72EE7E5C9}</guid>
  </entry>
  <entry>
    <record>85</record>
    <time>2014/03/14 14:53:21.928</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [EurekaPackage]</description>
    <guid>{8C28E535-ABC9-4F92-B5C9-6C16617C8884}</guid>
    <hr>80131509</hr>
    <errorinfo>Cannot create file mapping.</errorinfo>
  </entry>
  <entry>
    <record>86</record>
    <time>2014/03/14 14:53:21.977</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [EurekaPackage]</description>
    <guid>{8C28E535-ABC9-4F92-B5C9-6C16617C8884}</guid>
    <hr>80131509</hr>
    <errorinfo>Cannot create file mapping.</errorinfo>
  </entry>
  <entry>
    <record>2462</record>
    <time>2014/03/14 14:56:57.158</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{ED19932F-5443-4587-A005-1CB9158B2F64}</guid>
  </entry>
like image 848
user3132985 Avatar asked Mar 14 '14 15:03

user3132985


6 Answers

I got this error in Visual Studio 2017 when trying to load my ASP.NET project. I also got two instances of the error "The PackageManagementPackage did not load correctly" along with the "The 'EurekaPackage' package did not load correctly" error.

Similar to tandrasz's answer, I started seeing this error after disabling a bunch of extensions in Visual Studio's Tools > Extensions and Updates dialog.

I also found that the "Microsoft ASP.NET and Web Tools" extension had become disabled, even though I hadn't manually disabled it. Even after manually re-enabling that extension, it would become disabled again each time I restarted Visual Studio while the "package did not load correctly" error persisted.

Doing some science of re-enabling one extension at a time and restarting Visual Studio each time, I found that the specific extension I needed to re-enable to get things working again was the Microsoft Azure App Services Tools extension -- even though my project doesn't do anything with Azure.

(I also needed to re-enable the Microsoft ASP.NET and Web Tools extension along with that Azure extension.)

like image 135
Jon Schneider Avatar answered Oct 01 '22 12:10

Jon Schneider


Similar thing happened to me in Visual Studio 2017.

It is working now after re-enabling extensions that came with Visual Studio and which I disabled manually, because I thought I didn't need them.

like image 20
Tom Andraszek Avatar answered Oct 01 '22 10:10

Tom Andraszek


I excluded my computer from receiving domain group policies and it solved the issue. YMMV.

I will start applying group policies one by one until the culprit is found.

I will update this post as soon as I find the offending policy.

Hope it helps.

Luis

like image 39
Luis Hernandez Avatar answered Oct 01 '22 11:10

Luis Hernandez


This bug is reported on Microsoft Connect but they close it as not reproducible :-(

The newest VS2013 Update 2 RC did not resolved this problem.

like image 31
darilek Avatar answered Oct 01 '22 11:10

darilek


Running VS with Administrator previleges fix problem.

like image 45
pedrofernandes Avatar answered Oct 01 '22 10:10

pedrofernandes


I was having this issue in VS2017 and initially deleting the cache file from the directories described above, HOWEVER, I have since found a little software gem written by Mads Kristensen to do this FOR me.

You can DOWNLOAD it from the "Tools" menu under and "Extensions and Updates" - it's called "Clear MEF Component Cache".

Install, and voila, you can fix the issue with a click of the "Tools" menu in Visual Studio!

SUPER SIMPLE and no hiking boots required! (for traversing the directory structure) Thanks Mads!

The Github repo can be found here Clear MEF Component Cache

like image 38
Gary B Avatar answered Oct 01 '22 11:10

Gary B