No its not a NullReference Exception but the following:
An unhandled exception of type ‘System.Reflection.TargetInvocationException’ occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.
I tried your code snippet, but still get the same error. Any ideas what this particular exception means?
Imported from legacy forums. Posted by Dominic (had 439 views)