Reputation: 3343
I installed Visual Studio 2012 and DevExpress 13.1. As Visual Studio started, it generated an error shown by this attached image,
The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' 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 'C:\Users\must\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml'.
Continue to show this error message?
This error also appears in Visual Studio 2017.
Upvotes: 325
Views: 304487
Reputation: 2168
If you have have this problem with Copilot in VS2022, update your VS and remove Copilot from... Tools -> Get Tools and Features...
Copilot in now baked into VS2022 with the latest update, so after you remove the package (to fix the error message), it still works.
Upvotes: 0
Reputation: 211
Solution for Visual Studio 2017:
Step 1: open Visual Studio cmd in administrator mode (see start menu item: Developer Command Prompt for VS 2017 - Be sure to use: Run as administrator)
Step 2: change directory to the folder where Visual Studio 2017 is installed, for example:
cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
(You can copy/paste this command to your cmd prompt. For Visual Studio Professional, the folder will be called "Professional" instead of "Enterprise", etc.)
Step 3: copy/paste the below command
gacutil -if Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Shell.Interop.8.0.dll
Hit Enter...
It will resolve the issue...
Otherwise, you can also add the following to the GAC as above:
Microsoft.VisualStudio.Shell.Interop.9.0.dll
Microsoft.VisualStudio.Shell.Interop.10.0.dll
Microsoft.VisualStudio.Shell.Interop.11.0.dll
Microsoft.VisualStudio.Shell.Interop.12.0.dll
Additionally, some users have reported that it is beneficial to add:
Microsoft.VisualStudio.Shell.15.0
Upvotes: 21
Reputation: 147
Open Visual Studio with Run as Administrator
Upvotes: 1
Reputation: 1
I read this entire article around 15 times, without success. What worked for me was the following (VS 2022, Release 17.6):
Close the VS application
Go to "Common7\IDE\Extensions\Microsoft\CodeSense\Framework"
Run "gacutil -if" to all DLLs there:
gacutil -if Microsoft.VisualStudio.CodeSense.Common.dll
gacutil -if Microsoft.VisualStudio.CodeSense.dll
gacutil -if Microsoft.VisualStudio.CodeSense.Roslyn.dll
Upvotes: -1
Reputation: 541
For VS2022 after it got updated to 17.6
I started receveing The 'whatever-name' package did not load correctly.
Upvotes: 2
Reputation: 45
None of these solutions here worked for me. After a fresh installation of Visual Studio 2022, when opened from Start Menu it opened without any errors. However when launched from command prompt, I got 2 'package did not load correctly' errors (IntelliCodeCppPackage, Global Hub Client Package) and IDE closed automatically. Turns out the root cause in my case was using shortened file path in cmd.
I had it like this:
set MS_DEV=C:\PROGRA~1\MIB055~1\2022\Preview
call %MS_DEV%\VC\Auxiliary\Build\vcvars64.bat
call %MS_DEV%\Common7\IDE\devenv.exe
Changing shortened path will full path loaded the packages correctly for me
set MS_DEV="C:\Program Files\Microsoft Visual Studio\2022\Preview"
Shortened path used to work with Visual Studio 2017, not sure what changed in 2022.
Upvotes: 0
Reputation: 31
I met this problem. This is how I resolved it:
ComponentModelCache
again. No error occurred, but the extension is empty.Upvotes: 0
Reputation: 28
One more solution that worked for my colleague after trying all the others that did not work (for Visual Studio 2022).
Try this:
Rationale: If you had older versions of Visual Studio installed previously, they will come with their own NETFX Tools which might not uninstall correctly together with those older instances of Visual Studio. The new Visual Studio will for some reason pick the old Tools and fail using them. Removing the redundant directories fixes it.
Upvotes: 1
Reputation: 10114
I started to see this on a fresh Windows and Visual Studio 2013 Ultimate with Update 2 installation (although others have also reported it on Updates 3 and 4, as well as the Professional version).
To resolve the problem, close all Visual Studio instances, then delete all files in the following folder:
Visual Studio 2013
%localappdata%\Microsoft\VisualStudio\12.0\ComponentModelCache
It worked fine for me. Thanks to this article.
Visual Studio 2015
%localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache
Visual Studio 2017
%localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache
Visual Studio 2019
%localappdata%\Microsoft\VisualStudio\16_xxxx\ComponentModelCache
Visual Studio 2022
%localappdata%\Microsoft\VisualStudio\17_xxxx\ComponentModelCache
Upvotes: 586
Reputation: 1072
Since this is the top SO result in google for this issue, I'm going to leave my fix here for VS 2022 when experiencing this issue. I found it is commonly caused by an extension issue. In my particular case TypeScript Definition Generator was causing the issue and removing the extension solved it. To find which extension could be causing the issue, run VS with the /Log
command line switch.
i.e.: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe" /Log
After the error occurs, close VS and locate ActivityLog.xml found at %AppData%\Microsoft\VisualStudio\<version>\ActivityLog.xml
. Search the log for any extensions reporting an error and uninstall it.
Upvotes: 2
Reputation: 595
After trying lots of options this worked for me (VS 2019):
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\PublicAssemblies"
Replace Community
with your specific distribution.gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll
Upvotes: -1
Reputation: 36
Firstable, you need to be sure have the last Microsoft .NET Framework version, in my case, I had the 4.6 version and I have downloaded and updated the .NET Framework 4.8.03761 Developer Pack, from the official site:
https://dotnet.microsoft.com/download/dotnet-framework/net48
Once I restarted my PC, to continue fixing that, I solved this problem by clearing Visual Studio Component Model Cache.
Just delete or rename this folder:
%LocalAppData%\Microsoft\VisualStudio\11.0\ComponentModelCache or
%LocalAppData%\Microsoft\VPDExpress\11.0\ComponentModelCache and restart Visual Studio.
Upvotes: 1
Reputation: 1554
I encountered this problem in Visual Studio 2017 (15.7.4). After trying various solutions, eventually this worked for me: close all Visual Studio instances, and run this from the command line (possibly with administrator rights):
devenv.exe /clearcache
devenv /updateconfiguration
Upvotes: 123
Reputation: 755
I had the same problem for Visual Studio 2019 v16.8.6. It was fixed after repair Visual Studio from Visual Studio Installer.
Upvotes: 0
Reputation: 357
For others that have a similar problem but with live share.
In the visual studio installer there was a warning that live share was not installed correctly and a modification was pending, that would download live share again.
After completion of the modification the error was resolved.
Upvotes: 0
Reputation: 994
For Visual Studio 2017, 2019. I got this error and able to fix it just by enable the Live Share extension from extensions.
see the VS community page for detail.
Upvotes: 0
Reputation: 165
I tried everything except the repair. I even did an update. This is what fixed it for me:
CD C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\PublicAssemblies
gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll
Upvotes: 3
Reputation: 221
For Visual Studio 2019: I have done the following things to solve the problem
Backup the following Folder. After Taking backup and Delete This Folder C:\Users\munirul2537\AppData\Roaming\Microsoft\VisualStudio\16.0_add0ca51
Go to the installation panel of visual studio and do the following things
1.Go to install 2.Modify 3.Go to "Installation location" tab 4. Check "keep download cache after the installation" 5. Modify
Upvotes: 0
Reputation: 23
I had a similar problem.
After checking ActivityLog.xml and it said that it could not create an instance for the Extension/package name from a specific folder. I traced that path and I didn't find that folder it is looking for.
So I installed the extension again, I looked for the dll, and copied the containing folder contents to the folder Visual Studio is looking for.
So to recap:
Upvotes: 1
Reputation: 1
My issue was Mysql connector net 6.4.4, Nuget, xamarin, VSPackage, EditorPackage and etc.. package did not load correctly.
My solution is below for vs2015
forex. If you have Nuget package did not load correctly error - Remove Nuget folder in Local and Roaming directories.
that's it and it worked for me!...
Upvotes: 0
Reputation: 21
I solved it:
Upvotes: 0
Reputation: 11
Microsoft.VisualStudio.Default.cache
Enjoy using Visual Studio.
Upvotes: 1
Reputation: 5996
I had a similar issue (Tizen Project type package did not load correctly) with Visual Studio 2017.
After trying all the answers above, and spending a few hours searching for a solution for the errors inside ActivityLog.XML
, nothing worked for me.
Eventually, the solution was a Visual Studio Repair.
I assume that the repair process overrides some configurations that caused the problem.
Repair Visual Studio 2017
Repair Visual Studio 2019
Upvotes: 3
Reputation: 1235
In my case the error message is "The 'IntelliCodeCppPackage' package did not load correctly" (Visual Studio 2019):
I solved this is issue with these steps;
Upvotes: 2
Reputation: 1474
I had the pleasure of experiencing this random problem in Visual Studio 2017 Enterprise.
I tried every solution here, and it didn't work, including the Visual Studio repair (which takes a while). Several hours in, I thought maybe I should actually check the ActivityLog.xml file.
I uninstalled the offending extension from the 'Developer Command Prompt for VS2017' as an administrator since Visual Studio just freezed after open and nothing could be clicked.
Steps to uninstall - courtesy of jessehouwing.net
vsixinstaller /u:Microsoft.VisualStudio.LiveShare
to remove the extension.Upvotes: 3
Reputation: 181
I had a similar problem, and I went to Control Panel → Programs and repaired the Visual Studio installation. It worked for me.
Upvotes: 16
Reputation: 2007
Try devenv /setup
on the Visual Studio Command Prompt with administrative rights.
I had the same problem with Visual Studio 2013 Ultimate. I tried the solution by Reza posted here, but it didn't work.
Eventually I couldn't close Visual Studio. It was showing a similar dialog when I tried to close, and it wasn't closing. I tried this: Error message "No exports were found that match the constraint contract name". Neither.
I noticed a message in the Team Explorer window saying "Page 'somenumber' cannot be found". I tried that way, and I found this answer: Page '312e8a59-2712-48a1-863e-0ef4e67961fc' not found using Visual Studio 2012. So I run devenv /setup
on the Visual Studio Command Prompt with administrative rights.
It did the job, and everything is fine now.
Upvotes: 35
Reputation: 6963
I also experienced this issue after installing Telerik Reporting. I was not able to launch any solution in Visual Studio 2013, nor could I close Visual Studio 2013.
After uninstalling the reporting package and deleting Local / Roaming AppData for Visual Studio 2012, the problem was fixed.
Upvotes: 2
Reputation: 3689
Close Visual Studio.
Backup and delete the following path:
C:\Users\{your_username}\AppData\Roaming\Microsoft\VisualStudio\11.0
Restart Visual Studio as Admin
. Otherwise, the Roaming
folder can't be repaired by Visual Studio.
Upvotes: 69
Reputation: 11
I also experienced the same error, "NPM package not installed correctly", while creating a Node.js project in Visual Studio 2015.
I resolved my issue by performing two steps:
Delete all files present in this location:
C:\Users\<Your User Name>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
Restart Visual Studio.
Open Visual Studio and go to menu Tools → NuGet Package Manager → Package Manager Settings →
On the left side: You will see a drop down list: select Node.js, Tools → Npm → ClearCache → *OK
Then again try to create the project. It resolved my issue.
Upvotes: 1