TargetInvocationException diferences

  • Thread starter Thread starter jcornado
  • Start date Start date
J

jcornado

Guys:

I am running into the following:

When invoking a method via System.Reflection with the intention of
forcing an exception on the method being reflected, .Net Compact throws
directly the expected failure without out using
TargetInvocationException. .Net desktop appropiately throws the
TargetInvocationException that contains the expected exception

The docs state that TargetInvocationException is a supported class in
both runtimes.

Is this a known issue?

Is there a work around?

Am I missing something?

I am using Visual Studio 2003. Verified that the behavior is the same in
Pocket PC and Win CE emulators.
 
I found a work around for my problem but the fact of the matter is that
System.Reflection.TargetInvocationException is not working on the
Compact framework.

Thanks a lot anyway!
 
Back
Top