Deepak Chandel
Deepak Chandel

Reputation: 51

could not load file or assembly microsoft.visualstudio.editor.razor 2017 for ASP.NET.Core application

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]

Upvotes: 4

Views: 1113

Answers (2)

Amit Poonia
Amit Poonia

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

sarada
sarada

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

Related Questions