“Exception has been thrown by the target of an invocation” error (mscorlib)

I’d suggest checking for an inner exception. If there isn’t one, check your logs for the exception that occurred immediately prior to this one. This isn’t a web-specific exception, I’ve also encountered it in desktop-app development. In short, what’s happening is that the thread receiving this exception is running some asynchronous code (via Invoke(), e.g.) … Read more