Visual Studio Component Cache Out of Date

后端 未结 2 1697
情歌与酒
情歌与酒 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 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!

提交回复
热议问题