Visual Studio 2012崩溃查看aspx页面

时间:2013-04-11 17:50:37

标签: visual-studio visual-studio-2012

VS正在崩溃查看aspx页面Visual Studio我得到了这个例外。这是事件日志的例外:

Application: devenv.exe (Visual Studio Premium 2012)
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
   at Microsoft.VisualStudio.TextManager.Interop.IVsExpansionManager.EnumerateExpansions(System.Guid, Int32, System.String[], Int32, Int32, Int32, Microsoft.VisualStudio.TextManager.Interop.IVsExpansionEnumeration ByRef)
   at Microsoft.VisualStudio.Web.Snippets.SnippetListManager+SnippetCache.CacheLanguageExpansionStructs(Microsoft.VisualStudio.TextManager.Interop.IVsExpansionManager, System.Guid)
   at Microsoft.VisualStudio.Web.Snippets.SnippetListManager+SnippetCache..ctor(Microsoft.VisualStudio.TextManager.Interop.IVsExpansionManager, System.Guid, SnippetCache)
   at Microsoft.VisualStudio.Web.Snippets.SnippetListManager.ResetSnippetCache(System.Guid)
   at Microsoft.VisualStudio.Web.Snippets.SnippetListManager.EnsureInitialized(System.Guid)
   at Microsoft.VisualStudio.Web.Snippets.SnippetListManager.GetInstance(System.Guid)
   at Microsoft.VisualStudio.Web.Factory.Microsoft.VisualStudio.Web.Interop.IMVWFactory.CreateSnippetListManager(System.Guid)
   at Microsoft.VisualStudio.Shell.Interop.IOleInPlaceComponent.FDoIdle(UInt32)
   at Microsoft.VisualStudio.Platform.WindowManagement.OleInPlaceComponentIdleManager.PassOnIdleTime(System.Collections.Generic.List`1<Microsoft.VisualStudio.Shell.Interop.IOleInPlaceComponent>, Microsoft.VisualStudio.PlatformUI.OleComponentSupport.IdleTypes)
   at Microsoft.VisualStudio.Platform.WindowManagement.OleInPlaceComponentIdleManager.FDoIdleCore(UInt32)
   at Microsoft.VisualStudio.PlatformUI.OleComponentSupport.OleComponent.Microsoft.VisualStudio.OLE.Interop.IOleComponent.FDoIdle(UInt32)

我有:

 - Started Visual Studio in Safe Mode
 - Reverted my settings to default
 - Repaired
 - Done a uninstall and reinstall

其他人有什么想法吗?

1 个答案:

答案 0 :(得分:1)

这听起来像是扩展管理器中的一个错误(Visual Studio的非托管组件)。 它尤其适用于Visual Studio的代码段扩展功能。

您可以跟踪注册表,例如,此键:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\Languages\CodeExpa‌​nsions

并检查所有子键,查看是否有什么看起来不好,目录,甚至指向.XML文件(包含代码段配置)。您也可以使用SysInternals&#39; ProcMon工具用于监控正在进行的工作。

最终,您还可以杀死所有这些键并启动修复......

也可以在此处向Microsoft报告错误:Connect site for Visual Studio但如果它不易重现,则可能在不久的将来无法修复。