Note that there are some explanatory texts on larger screens.

plurals
  1. PONo highlighting in most pages, reports error when editing
    text
    copied!<p>I'm in the middle of upgrading a solution from VS2010/MVC3/.Net 4 to VS2012/MVC4/.Net 4.5. The solution has been upgraded using VS2012's project migration tool and I followed <a href="http://www.dotnetexpertguide.com/2011/12/upgrade-aspnet-mvc-3-project-to-mvc-4.html" rel="nofollow">this guide</a> to upgrade MVC3 to 4.</p> <p>At the moment, Razor is giving me problems. Syntax highlighting doesn't appear for anything but the layout page, and when I try to move around in a view I either get the dialog:</p> <blockquote> <p>Waiting for a background operation to complete. This dialog will close when the operation completes.</p> </blockquote> <p>Or I get an error telling me to check the Visual Studio activity log (C:\Users{User}\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml), which led me to this error:</p> <blockquote> <p>System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Web.HTML.Implementation.Projection.GrowingSpanTracker.EnsureNoOverlap() at Microsoft.VisualStudio.Web.HTML.Implementation.Projection.GrowingSpanTracker.EnsureTrackingPoints() at Microsoft.VisualStudio.Web.HTML.Implementation.Projection.GrowingSpanTracker.OnTextBufferChanged(Object sender, TextContentChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</p> </blockquote> <p>The Source column of the log says it comes from a "Editor or Editor Extension". I'm running vanilla VS2012 here, with no extensions aside from the first party stuff (Microsoft Web Developer Tools, NuGet Package Manager, and Visual Studio Extensions for Windows Library for JavaScript).</p> <p><strong>EDIT: Some additional details. If I create a new solution and MVC4 project, add the line:</strong></p> <pre><code>@RenderSection("title", false) </code></pre> <p>to the layout, and then attempt to define the section in a view:</p> <pre><code>@section title{Stuff} </code></pre> <p>The moment I start typing "Stuff" within the braces I get the same errors/behavior.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload