MVC3项目升级到VS2012后AccessViolationException [英] AccessViolationException after upgrading MVC3 project to VS2012

查看:133
本文介绍了MVC3项目升级到VS2012后AccessViolationException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个MVC3的网站使用VS2010伟大的工程。我最近升级我的开发环境,以VS2012 RTM。我现在不能没有崩溃开发网络服务器上运行的网站在调试器。

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已停止工作。

WebDev.WebServer40.exe has stopped working

我看到两个类似的堆栈跟踪之一VS2012:

I see one of two similar stack traces in VS2012:

首先,一个 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#

其次,的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.

要尽我所知,我所做的就是安装VS2012,重新启动,然后打开我的VS2010的解决方案在VS的新版本,看它说,升级成功,和preSS <大骨节病> F5 < /骨节病>。

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?

推荐答案

请阅读部分从链接的 http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253815 。 按照setps所需的更新,让我知道如果这个错误仍然repros。

Please read section "Installing ASP.NET MVC 4 breaks ASP.NET MVC 3 RTM applications" from link http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253815. Follow setps "Required updates" and let me know if this error still repros.

这篇关于MVC3项目升级到VS2012后AccessViolationException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆