Visual Studio Component Cache Out of Date

后端 未结 2 1678
情歌与酒
情歌与酒 2021-01-14 00:32

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

相关标签:
2条回答
  • 2021-01-14 00:53

    You should go to

    %APPDATA%\Local\Microsoft\Visual Studio\<version>
    

    and delete the ComponentModelChache directory.

    0 讨论(0)
  • 2021-01-14 01:10

    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!

    0 讨论(0)
提交回复
热议问题