为什么Visual Studio的碰撞与MVC RC1打开ASPX [英] Why does Visual Studio crash opening ASPX with MVC RC1

查看:135
本文介绍了为什么Visual Studio的碰撞与MVC RC1打开ASPX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 从MVC测试版升级到MVC RC1。

  • 重新指向项目中的所有引用指向新组件

  • 重新启动

  • 一切编译(并运行!)

  • 但是......

在打开一个VS视图(的.aspx),她只是消失了!
事件查看器提供了:

Opening a view (.aspx) in VS and she just disappears! Event Viewer gives:

NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (6E075E00) (80131506)

更新1:结果
不是所有的.aspx页!结果
此外 - 似乎写在StackOverflow的问题是修复! GRR

Update 1:
Not ALL .aspx pages!
Also - it seems that writing the question on StackOverflow is the fix! grr

更新2:结果
没有问题,因为发帖的问题,但是:
我唯一​​的插件是的VisualSVN和ReSharper的。
我似乎有在GAC对System.Web.Mvc的东西 - 但它看起来像错误的版本,我无法摆脱它。

Update 2:
Not had the problem since posting the question but: The only plugins I have are VisualSVN and Resharper. I do seem to have something in the GAC for System.Web.Mvc - but it looks like the wrong version and I can't get rid of it.

我相信它必须在涉及到一些智能影音感着色或类似的.aspx页的code的渲染 - 但现在它停止了,很难确认...

I believe it must be related to some intelli-sense colouring or similar during the render of the code of the .aspx page - but now it's stopped it is hard to confirm...

推荐答案

尝试删除所有斌/ OBJ目录,并清除临时ASP.NET文件和%TEMP%目录。然后从VS2008命令提示符下发出以下命令:

Try removing all bin/obj directories, and clearing your Temporary ASP.NET Files and %TEMP% directories. Then issue the following commands from a VS2008 command prompt:

ngen /delete System.Web.Mvc
ngen /delete System.Web.Abstractions
ngen update

此外,还应确保您的所有引用(MvcContrib,什么都反对建MVC)都指向同一个版本的MVC的所有其他人。

Also ensure that all your references (MvcContrib, anything else built against MVC) are pointing to the same version of MVC as all the others.

这似乎已经为我工作(到目前为止)

This seems to have worked for me (so far)

这篇关于为什么Visual Studio的碰撞与MVC RC1打开ASPX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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