How can I fix the Microsoft Visual Studio error: “

2020-01-24 18:50发布

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?

Microsoft Visual Studio - The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly.

This error also appears in Visual Studio 2017.

27条回答
淡お忘
2楼-- · 2020-01-24 19:43

I just wanted to mention that I got a similar error in SQL Server Management Studio 2016, where I basically ignored it. Later, I launched Visual Studio (2015), and this error occurred there as well.

I searched and found the answer here recommending that files be deleted from the

%localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache

folder. However, in my case, this folder was empty.

Since I remembered that I saw the error in Management Studio first, I checked, and there was a similar folder at

%localappdata%\Microsoft\SQL Server Management Studio\13.0\ComponentModelCache

This folder was not empty. I closed both Visual Studio and Management Studio, and deleted the files from this folder.

Afterwards, both Management Studio and Visual Studio launched without error.

查看更多
贪生不怕死
3楼-- · 2020-01-24 19:43

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

查看更多
对你真心纯属浪费
4楼-- · 2020-01-24 19:44

I had the same problem and deleting the app data directory for Visual Studio 11.0 worked for me.

查看更多
该账号已被封号
5楼-- · 2020-01-24 19:45

Visual Studio 2017 solution for me:

  1. Closed Visual Studio
  2. Ran it in "Run as Admin" mode.

No more problem.

查看更多
【Aperson】
6楼-- · 2020-01-24 19:45

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:

  1. Delete all files present in this location:

    C:\Users\<Your User Name>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
    

    Restart Visual Studio.

  2. Open Visual Studio and go to menu ToolsNuGet Package ManagerPackage Manager Settings

    On the left side: You will see a drop down list: select Node.js, ToolsNpmClearCache → *OK

Then again try to create the project. It resolved my issue.

查看更多
\"骚年 ilove
7楼-- · 2020-01-24 19:45
  1. Find the ComponentModelCache folder
  2. Delete Microsoft.VisualStudio.Default.cache
  3. Restart Visual Studio

Enjoy using Visual Studio.

查看更多
登录 后发表回答