Often when I use the reflection API I get an exception whose associated message is "Exception has been thrown by the target of an invocation.". What does this error message mean?
Whenever you use something like Member.Invoke(), if the called method throws
an exception, the runtime will wrap that exception inside of the exception
that you got. You can find the original except using the inner property (or
by calling ToString() on the exception).