I've developed an MVC3 web site using VS2010 which works great. I recently upgraded my dev environment to VS2012 RTM. I'm now unable to run the web site in the debugger without crashing the development web server.
WebDev.WebServer40.exe has stopped working
I see one of two similar stack traces in VS2012:
Firstly, an AccessViolationException
:
mscorlib.dll!System.StringComparer.GetHashCode(object obj) + 0xc bytes
mscorlib.dll!System.Collections.Hashtable.GetHash(object key) + 0x10 bytes
mscorlib.dll!System.Collections.Hashtable.InitHash(object key, int hashsize, out uint seed, out uint incr) + 0xf bytes
mscorlib.dll!System.Collections.Hashtable.Remove(object key) + 0x38 bytes
System.dll!System.Collections.Specialized.NameObjectCollectionBase.BaseRemove(string name) + 0x2e bytes
System.Web.dll!System.Web.SessionState.SessionStateItemCollection.Remove(string name) + 0x56 bytes
System.Web.dll!System.Web.SessionState.HttpSessionStateContainer.Remove(string name) + 0xc bytes
System.Web.dll!System.Web.HttpSessionStateWrapper.Remove(string name) + 0xf bytes
Dive7.Site.dll!Dive7.Site.D7WebViewPage<object>.IsAdmin.get() Line 56 + 0x19 bytes C#
Secondly, a NullReferenceException
:
mscorlib.dll!System.StringComparer.GetHashCode(object obj) + 0x33 bytes
mscorlib.dll!System.Collections.Hashtable.GetHash(object key) + 0x10 bytes
mscorlib.dll!System.Collections.Hashtable.InitHash(object key, int hashsize, out uint seed, out uint incr) + 0xf bytes
mscorlib.dll!System.Collections.Hashtable.Remove(object key) + 0x38 bytes
System.dll!System.Collections.Specialized.NameObjectCollectionBase.BaseRemove(string name) + 0x2e bytes
System.Web.dll!System.Web.SessionState.SessionStateItemCollection.Remove(string name) + 0x56 bytes
System.Web.dll!System.Web.SessionState.HttpSessionStateContainer.Remove(string name) + 0xc bytes
System.Web.dll!System.Web.HttpSessionStateWrapper.Remove(string name) + 0xf bytes
Dive7.Site.dll!Dive7.Site.D7WebViewPage<object>.IsAdmin.get() Line 56 + 0x19 bytes C#
The exact one that occurs seems to be random.
To the best of my knowledge, all I did was install VS2012, reboot, then open my VS2010 solution in the new version of VS, watch it say that the upgrade was successful, and press F5.
I'm out of ideas. Can anyone suggest what might be going on?