2013-04-11 104 views
1

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

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 

任何人有什么想法?

+0

我的第一个想法是IE10。偶然,你是否最近安装了它?它完全搞砸了我的系统上的javascript调试,但我并没有等待,看看还有什么可能被打破。 – Jpirok 2013-04-12 12:33:54

+0

我能够卸载IE10,修复安装VS2012,重新安装VS Update 1,一切都很好。 – Jpirok 2013-04-12 12:39:28

+0

我仍然安装了IE 9,但我会查看是否安装了任何其他更新 – 2013-04-12 13:01:37

回答

1

这听起来像是扩展管理器(Visual Studio的非托管组件)中的一个错误。 它对Visual Studio的片段扩展功能特别负责。

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

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

,并检查所有的子键,看看是否有不妙,目录,甚至.XML文件(包含片断配置)指出。您还可以使用SysInternals的ProcMon工具来监视发生了什么。

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

它也可以报告错误到微软这里:Connect site for Visual Studio,但如果它不容易复制,它可能不会被固定在一个不远的将来。

+0

我看着那个关键,没有找到.. 。但是这给了我一个想法,那就是完全删除我的用户帐户配置文件,并从头开始http://windows.microsoft.com/en-US/windows-vista/fix-a-corrupted-user-profile(this是为Windows Vista的,但也适用于7)谢谢@西蒙伟大的思想! – 2013-04-29 13:11:24