Visual Studio 2013 or 2015 EditorPackage did not load correctly constantly

C#Visual StudioVisual Studio-2013Visual Studio-2015

C# Problem Overview


When starting Visual Studio 2013 Pro (Update 4 installed) I very often get this error message (several times a day now) for the past about two weeks:

> The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly.

I know I can correct this problem by closing Visual Studio and deleting:

%LocalAppData%\Microsoft\VisualStudio\12.0\ComponentModelCache

I have never seen it before that time and as far as I found out in the Internet it was possibly introduced with Update 3.

Well, the problem is that it is annoying to restart Visual Studio several times a day, and I was wondering if anyone else is experiencing this and knows how to solve it for good or what the cause is.

I noticed that it happens extremely often if I work in more than one instance of Visual Studio in parallel. This one is a killer. But still I suspect a third-party component to be involved or it is the size of one of the solutions (about 70 projects). I tried to deactivate some extensions I newly installed and need for the big project, but to no avail.

Just as information: I am working with C#. When working in parallel with projects open in several instances of Visual Studio I never had problems before.

Does anyone have the same problem to this extend or possibly have a better solution than deleting the folder and restarting?

C# Solutions


Solution 1 - C#

This has become a popular question so I thought I add an explicit answer how to (at least) temporarily fix the problem as already stated in the question:

I stop Visual Studio and delete the following folder (completely, not just contents)

%LocalAppData%\Microsoft\VisualStudio\12.0\ComponentModelCache

If you are using VS2015, then the path should be:

%LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache

If you are using VS2017, then the path should be:

%LocalAppData%\Microsoft\VisualStudio\15.0\ComponentModelCache

I don't keep a backup of the folder. It is created automatically again when starting Visual Studio.

I have never found a solution how to permanently fix the problem in that working environment. In my new developing environment (new projects and new workplace) the problem never happens.

Solution 2 - C#

This is what helped me... seemed to happen after Windows Server 2012 SP install...

https://connect.microsoft.com/VisualStudio/feedback/details/1123745/setsite-failed-for-package-microsoft-visualstudio-editor-implementation-editorpackage

  1. devenv /clearcache
  2. devenv /updateconfiguration

Solution 3 - C#

In that case you can start Visual Studio setup again and choose the option showing two options, Repair and Uninstall. Then click Repair and when repair is done, restart the computer. Then the issue has been resolved.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionUwe HafnerView Question on Stackoverflow
Solution 1 - C#Uwe HafnerView Answer on Stackoverflow
Solution 2 - C#user5724068View Answer on Stackoverflow
Solution 3 - C#ManoharView Answer on Stackoverflow