VS2013 Update 4, cannot open CSHTML files

I have a machine that can no longer edit CSHTML files in VS2013 update 4. The exact manifestation of this varies. In some cases, a modal text appears saying: "The operation cannot be completed." In some cases, the ActivityLog.xml file will be filled with errors:

System.NullReferenceException: The reference to the object is not set to the instance of the object. on Microsoft.Html.Editor.HtmlEditorDocument.FromTextView (ITextView TextView) in Microsoft.Html.Editor.CodeBackgroundTextAdornment..ctor (view IWpfTextView, IClassificationFormatMapService classificationFormatMapService, IClassificationTypeRegistryService classificationTypeRegistry) in Microsoft.Html.Editor.Classification.RazorCodeBackgroundTextAdornmentFactory.TextViewCreated (IWpfTextView TextView ) in Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView. <> c__DisplayClassc.b__9 () in Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint (Object errorSource, Action call)

System.NullReferenceException: The reference to the object is not set to the instance of the object. at Microsoft.Html.Editor.CodeBackgroundTextAdornment.OnLayoutChanged (object sender, TextViewLayoutChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent [TArgs] (object sender, EventHandler`1 eventHgslers,)

This is not like a specific project / solution. If I create a completely new empty MVC solution aimed at the 4.5.2 framework, opening any CSHTML in a new solution will show the problem.

However, if I create an MVC environment for targeting 4.0, the problem does not occur. This indicates that the problem is related to MVC5.

What is especially surprising about this problem is that I had a corporate IT redraw image of a machine with a new hard drive, I reinstalled VS2013 and I still see the problem.

( AD ..) .

:

VS2013 : .

VS2013: .

VS2013 safemode: .

: .

Reset VS: .

+4
1

- C:\Users\ \AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

ComponentModelCache. Visual Studio , 10.0 15.0, ComponentModelCache. .

0

All Articles