I'm working on a fairly large Silverlight 4 application (42 projects in 1 solution), and I'm wrestling with a really strange issue.
The application works fine in a debug build, and even in release build it runs with the debugger attached (F5), but when it is run without debugging the silverlight xap loads and then shows only a blank page.
I'm handling Application_UnhandledException which is not firing, so it's almost impossible to get any useful information from it, especially since I cannot reproduce this behaviour with the debugger attached.
What differences are there at runtime when the debugger is attached that could possibly cause this problem?
Edit: I should also add that the debug build also runs without the debugger attached.