Reputation: 6971
VS is Crashing viewing aspx pages Visual Studio I get this exception. This is the exception from the event log:
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)
I have:
- Started Visual Studio in Safe Mode
- Reverted my settings to default
- Repaired
- Done a uninstall and reinstall
Anyone else have any ideas ?
Upvotes: 1
Views: 1058
Reputation: 138925
It sounds like a bug in the expansion manager (an unmanaged component of Visual Studio). It is responsible notably for Visual Studio's snippet expansion feature.
You could track the registry, for example, this key:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\Languages\CodeExpansions
and check all the sub keys, see if something looks bad, the directories, or even the .XML files (containing snippet configurations) pointed at. You can also use SysInternals' ProcMon tool to monitor what's going on.
Ultimately, you could also kill all these keys and launch a repair...
It's also possible to report the bug to Microsoft here: Connect site for Visual Studio but if it's not easily reproducible, it may not be fixed in a near future.
Upvotes: 1