Reputation: 51
when I opened my view or .cshtml page in my mvc project,
It shows the error in the alert box, "could not load file or assembelly Microsoft.VisualStudio.Editor.Razor, Verrsion=2.1.2.0". Can any one please in my issue,
Thanks
I followed instrction on this link but not worked. [https://developercommunity.visualstudio.com/content/problem/194267/the-document-cannot-be-opened-it-has-been-renamed.html][2]
Upvotes: 4
Views: 1113
Reputation: 15
1)Close VS
2)Delete the content of %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
Note:- here 14.0 visual studio version may be in your system different like 15,15.0_867fe6fa etc
3)Open VS
its work for me
Upvotes: 1
Reputation: 31
Issue is raised when Razorlanguage services is disables.We can Enable Razorlanguage services through visualstudio -->Tools -->Extensions and updates --> Search for Razorlanguageservices enable.
Upvotes: 3