I tried to open a solution in visual studio and got the following error message: "The "Microsoft.VisualStudio.Editor.Implementation.EditorPackage" package did not load correctly". It also tells me to look into the log file... here are the (hopefully) relevant error entries from the log file (activity montior log):
194 ERROR Type provided must be an Enum. Parameter name: enumType
C:\Users\uhofstetter\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache\Microsoft.VisualStudio.Default.cache Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost 2015/11/25 17:48:41.548
195 ERROR An error occured while loading assembly cache from the cache file:
C:\Users\uhofstetter\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache\Microsoft.VisualStudio.Default.cache Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost 2015/11/25 17:48:41.549
196 ERROR Type provided must be an Enum. Parameter name: enumType
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\EDITOR\Microsoft.VisualStudio.Platform.VSEditor.dll Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost 2015/11/25 17:48:41.552
197 Warning Temporary turn off caching for this assembly for the current session of the application
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\EDITOR\Microsoft.VisualStudio.Platform.VSEditor.dll Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost 2015/11/25 17:48:41.553
...
235 ERROR SetSite failed for package [Microsoft.VisualStudio.Editor.Implementation.EditorPackage] {E269B994-EF71-4CE0-8BCD-581C217372E8} 80131500 VisualStudio 2015/11/25 17:49:20.531
236 ERROR End package load [Microsoft.VisualStudio.Editor.Implementation.EditorPackage] {E269B994-EF71-4CE0-8BCD-581C217372E8} 80131500 VisualStudio 2015/11/25 17:49:20.551
does anyone know what is going wrong here?
Btw: I am using Visual Studio Professional 2012
您是否尝试删除 %LOCALAPPDATA%\\Microsoft\\VisualStudio\\11.0\\ComponentModelCache 并重新启动 VS2012 / VS2013 可能会解决该问题
With VS2019 I had to:
C:\\Users\\{your_username}\\AppData\\Roaming\\Microsoft\\VisualStudio\\*
C:\\Users\\{your_username}\\AppData\\Local\\Microsoft\\VisualStudio\\16.0_xxxx\\ComponentModelCache
the solutions that worked for everyone else
Which seems to be either deleting the folders at both:
C:\Users\your_username\AppData\Local\Microsoft\VisualStudio\version_number
and
C:\Users\your_username\AppData\Roaming\Microsoft\VisualStudio\version_number
or deleting/renaming
C:\Users\your_username\AppData\Local\Microsoft\VisualStudio\version_number\ComponentModelCache ...
Was not enough for me. I had a error which popped up on attempting to load Python projects "0x80070570: The file or directory is corrupted and unreadable". If you have this issue running a disk check/repair and reboot followed by the above steps should work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.