如何调试死亡的ASP.NET MVC白屏 [英] How to Debug the White Screen of Death in ASP.NET MVC

查看:246
本文介绍了如何调试死亡的ASP.NET MVC白屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级从Beta我的ASP.NET MVC应用程序版本1.足够真实的,在我固定所有引用,我得到了死亡的白色屏幕,当我pressed F5。

I have recently upgraded my ASP.NET MVC application from beta to version 1. And true enough, after I fixed all the references, I got a white screen of death when I pressed F5.

有任何想法如何调试死亡的白色屏幕在VS 2008中?

Is there any idea how to debug white screen of death in VS 2008?

推荐答案

我已经找到了通过的打开视图编辑。这将赶上不使用默认的构建过程陷入一些很难调试的问题。

I have found a few of these mysterious issues by turning on view compilation. This will catch some hard-to-debug problems that aren't caught with the default build process.

您也可以挂钩中的的 ELMAH错误日志组件。这将让你的异常的记录让你有栈和异常的副本,而你去的答案周围挖。

You can also hook up the Elmah error logging component. It will keep a record of your exception so you have a copy of the stack and exception while you go digging around for the answer.

这篇关于如何调试死亡的ASP.NET MVC白屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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