Almost every time I try to run the update-database command for EF migrations, I get the following error in Visual Studio 2015:
Exception calling \"Get
You should go to
%APPDATA%\Local\Microsoft\Visual Studio\<version>
and delete the ComponentModelChache directory.
I was getting this error when trying to select records in my SQL server management studio:
Error: "The Visual Studio component cache is out of date. Please restart Visual Studio. (Microsoft.VisualStudio.ExtensibilityHosting)"
I restarted Visual Studio but got same error.
Solution: I went to this location: "C:\Users\username\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache"
And deleted all the files inside that folder and restarted both VS and SQL server. IT WORKED!