Graviton
Graviton

Reputation: 83254

How to debug the white screen of death in ASP.NET MVC

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.

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

Upvotes: 1

Views: 2786

Answers (2)

Steven Lyons
Steven Lyons

Reputation: 8218

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.

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.

Upvotes: 4

ten5peed
ten5peed

Reputation: 15890

Create a new ASP.NET MVC v1 application and compare how the two are setup.

I would pay special attention to the web.config and global.asax.

HTHs, Charles

Upvotes: 0

Related Questions