 <p>There's no way that Exception <em>originated</em> from the code you posted. If <code>OnInit</code> is aprt of the stack trace, then the exception <em>has</em> to have been thrown from (or passed through) <code>InitializeComponent</code> or <code>base.OnInit(e)</code></p> <p>Run it in the debugger and see where the exception <em>actually</em> originates. You can also turn on "break on handled exception" if you want, but you'll likely get some false positives.</p>