views:

196

answers:

2

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?

+2  A: 

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.

Steven Lyons
A: 

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

Charlino
Including the web.config in the views folder
John Sheehan
That was what I did at the end to solve my problem. Although this is a sure-fire solution, but I would still prefer a simpler, less laborious one.
Ngu Soon Hui
Surely it wasn't that laborious using WinMerge or something like that...? Otherwise I hope you don't have too many projects to migrate!
Charlino