I made a stupid mistake, I called myControl.Controls.Add(myControl);
. Easy enough. The interesting thing is that this cause IIS to crash and the exception was thrown in the actual framework. I didn't even break and let me debug, it just fell apart.
It seems like this should have been handled better by the .NET framework than it was. Or should it? Is this expected behavior with a mistake like this, or could it have been handled more elegantly by the debugger?