The code that is generating the exception is not there. That Exception Assistant window has a View Details link on it for a reason. You should use it. At the very least, you can provide us with more useful information. The StackTrace of the exception will tell where it actually gets thrown and you can then show us that code, if you can't work out the issue for yourself.