Here's a super simple 2-click solution to a problem
that will remain a mystery for now:
Say that you find that a web app you're working on takes like 2 minutes to
load every page, but always renders them correctly, and if you run it in debug
mode you find something along the lines of this in the output window:
A first-chance exception of type System.Exception
occured in System.Web.dll
And nothing is in the event log or anything, and the page always
ends up rendering correctly anyway, it just takes forever because it waits for
an exception or two to get thrown first...
And you've been using Visual Studio's built in ASP.NET Development
Server to run it...
Don't.
Who knows what's happening? It doesn't matter. But someone said
"try using IIS" and the problem instantly went away. Good enough for me :)
If you're developing on a box that doesn't have IIS... you're on your own!