samjudson is right on the mark there!
The stack trace output by the exception should indicate the line that is failing..
Its important you get used the information provided by the Exception and debugging tools to overcome these issues, as well of course as identifying your development platform ;)
The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://www.robzyc.spaces.live.com
<center>"Nothing can stop the man with the right mental attitude from achieving his goal;
nothing on earth can help the man with the wrong mental attitude".