MVC4 razor editor crashes in VS2010SP1
-
2012年3月30日 下午 07:59
I keep having the razor editor crashing VS2010 SP1 when editing a file.
Any suggestions?
Thanks,
James
============================================
The exception is
Exception Type: System.AggregateException
Exception Message: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.
Exception Stack Trace: at System.Threading.Tasks.TaskExceptionHolder.Finalize()
Inner Exception:
Exception Type: System.NullReferenceException
Exception Message: Object reference not set to an instance of an object.
Exception Stack Trace: at Microsoft.VisualStudio.Shell.ThreadHelper.InvokeOnUIThread(InvokableBase invokable)
at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke(Action action)
at Microsoft.VisualStudio.Web.Razor.Implementation.Shims.RazorCodeGeneratorBase.DocumentParseComplete(Object sender, DocumentParseCompleteEventArgs e)
at Microsoft.VisualStudio.Web.Razor.Implementation.Shims.ShimRazorEditorParserImpl.OnDocumentParseComplete(Object sender, DocumentParseCompleteEventArgs args)
at System.Web.Razor.RazorEditorParser.OnDocumentParseComplete(DocumentParseCompleteEventArgs args)
at System.Web.Razor.RazorEditorParser.OnParseCompleted(GeneratorResults results, BackgroundParseTask parseTask)
at System.Web.Razor.Editor.BackgroundParseTask.RunContinuation(Task completed, Action`2 continuation)
at System.Web.Razor.Editor.BackgroundParseTask.<>c__DisplayClass3.<ContinueWith>b__2(Task t)
at System.Threading.Tasks.Task.<>c__DisplayClassb.<ContinueWith>b__a(Object obj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
Inner Exception:
Exception Type: System.NullReferenceException
Exception Message: Object reference not set to an instance of an object.
Exception Stack Trace: at Microsoft.VisualStudio.Web.Razor.Implementation.Shims.RazorCodeGeneratorBase.VerifyTreeStructureMatches()
at Microsoft.VisualStudio.Web.Razor.Implementation.Shims.RazorCodeGeneratorBase.DocumentParseCompleteMainThread()
at Microsoft.VisualStudio.Web.Razor.Implementation.Shims.RazorCodeGeneratorBase.<DocumentParseComplete>b__1()
at Microsoft.VisualStudio.Shell.InvokableAction.InvokeMethod()
at Microsoft.VisualStudio.Shell.InvokableBase.Invoke()
-------------------------
Installed Extensions
ASP.NET MVC 4 template packages
State = Enabled
Version = 1.0
ASP.NET Web Pages 2 template packages
State = Enabled
Version = 1.0
NuGet Package Manager
State = Enabled
Version = 1.6.30117.9648
SpecFlow
State = Enabled
Version = 1.8.1
Xaml Styler
State = Enabled
Version = 1.5.7
Solution Explorer Tools
State = Enabled
Version = 2.4
PowerCommands for Visual Studio 2010
State = Enabled
Version = 1.0.2.3
Productivity Power Tools
State = Enabled
Version = 10.0.20626.18
Visual Studio Color Theme Editor
State = Enabled
Version = 1.3
VSCommands 10
State = Enabled
Version = 10.3.9.1
-------------------------
Environment Data
VisualStudio.Version = 10.0
VisualStudio.Edition = Premium
VisualStudio.FullName = c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
VisualStudio.RegistryRoot = Software\Microsoft\VisualStudio\10.0
VisualStudio.LocaleId = 1033
VisualStudio.DisplayMode = vsDisplayMDITabs
Time.UTC = 3/30/2012 7:56:48 PM
Time.Local = 3/30/2012 3:56:48 PM
OS.Architecture = AMD64
Environment.Version = 4.0.30319.530
Environment.HasShutdownStarted = False
Environment.OSVersion.Platform = Win32NT
Environment.OSVersion = 6.1.7601.65536
CurrentThread.Id = 1
CurrentThread.Name = [null]
CurrentThread.ThreadState = Background
CurrentThread.IsBackground = True
CurrentThread.UICulture = English (United States)
CurrentThread.Culture = English (United States)
Process.PagedMemorySizeMB = 269.78125
Process.MaxWorkingSetMB = 1.34765625
Process.NonpagedSystemMemorySizeMB = 0.164779663085938
Process.PagedSystemMemorySizeMB = 1.15659332275391
Process.PrivateMemorySizeMB = 269.78125
Process.VirtualMemorySizeMB = 872.87109375
Process.WorkingSetMB = 345.93359375
Process.UpTime = 00:03:50.2627468
- 已移動 lucy-liu 2012年4月6日 上午 09:04 it is a asp.net issue (From:Visual Studio Editor)
所有回覆
-
2012年4月1日 上午 08:33
Hi Jay,
Check below similar link
Best Regards,
-
2012年4月2日 上午 06:16
Hi Jay,
Does the AnandPatel's reply can help fix this issue?
If you still cannot solve this issue, I suggest you to write a new post to http://www.asp.net/ ASP.NET forum for a better support.
Thank you for your understanding!
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us

