显示XAML视图时,Visual Studio 2008崩溃.如何获得更多信息? [英] Visual Studio 2008 crashes when displaying XAML view. How to get more information?

查看:78
本文介绍了显示XAML视图时,Visual Studio 2008崩溃.如何获得更多信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2008 Express开发Silverlight应用程序.我刚刚实现了一个新的用户控件,并将其添加到了网格中.

I am developing a Silverlight app using VS2008 Express. I have just implemented a new user control and have added it to a Grid.

当我尝试打开包含此控件的XAML视图时,VS崩溃并重新启动.

When I try to open a XAML view which contains this control, VS crashes and restarts.

我在哪里可以找到更多信息?VS中有事件日志吗?

Where can I look for more information? Is there an event log in VS?

更新,我发现我的问题是一个循环引用,导致... Stackoverflow.日志没有太大帮助-我不得不在另一个编辑器中通读代码并搜索我的错误.

Update I found my problem which was a circular reference causing a ... Stackoverflow. The logs didn't help much - I had to read through the code in another editor and search for my bug.

推荐答案

首先,查看Windows事件日志(应用程序日志).它可能会在" NET运行时版本2.0.50727.3053-致命执行引擎错误(7A035E00)(80131506)"中显示快速失败错误消息."

First, look in the windows event log (app log). It will probably show a fastfail error message along the lines "NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A035E00) (80131506)"."

要获取有关导致该错误的原因的更多详细信息,您可以将另一个VS实例作为调试器附加并查看调试输出,也可以启用

To get more details on what caused it you can either attach another VS instance as a debugger and watch the debug output, or you can enable fusion logging since this is usually caused by assembly load errors.

VS快速失败的一个常见原因是.net 2.0 SP2中的一个错误,该错误在此处进行了详细说明:
http://support.microsoft.com/?kbid=963676

One common cause of VS fastfails is a bug in .net 2.0 SP2 that is described in more detail here:
http://support.microsoft.com/?kbid=963676

其他解决方法(如果上面链接到的MSKB文章中描述的补丁不起作用)是:

Other workarounds (if the patch described in the MSKB article linked to above don't work) are:

1)运行"ngen/delete *"(具有管理特权,来自.net framework 2.0目录).

1) Running "ngen /delete *" (with administrative privileges, from the .net framework 2.0 directory).

2)我写的一个加载项在每次打开项目时都按需加载而不是按需加载所有引用的程序集(并允许您调整加载顺序).您可以从这里获取它(以及它的源代码):
http://www.huagati.com/ProjectLoader/download/HuagatiProjectLoader.zip

2) An add-in I wrote that loads all referenced assemblies (and allows you to tweak the load order) whenever opening a project instead of as-needed. You can get it (and the source code for it) from here:
http://www.huagati.com/ProjectLoader/download/HuagatiProjectLoader.zip

这篇关于显示XAML视图时,Visual Studio 2008崩溃.如何获得更多信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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