4

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.0enter image description here". 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]

1
  • 2
    I think you need to add some more info. How is anyone supposed to help you when we can't see what you have done? Please read this and update your question.
    – Jack Flamp
    Commented Aug 31, 2018 at 11:13

2 Answers 2

3

Issue is raised when Razorlanguage services is disables.We can Enable Razorlanguage services through visualstudio -->Tools -->Extensions and updates --> Search for Razorlanguageservices enable.

0
1

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.