Yeah, the error isn't even in that code.

The exception is occuring as the form is loading, that can cause the debugger to take you to the wrong line, which makes tracking down the problem far more difficult than most issues. In fact, it ends up being nearly a guess.

The issue is on that form, and is occuring very early on. What controls are on the form? Also, is this form the startup form for the application?