all groups > dotnet compact framework > april 2004 >
You're in the

dotnet compact framework

group:

TargetInvocationException diferences


TargetInvocationException diferences jcornado
4/3/2004 10:41:55 PM
dotnet compact framework:
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.
Re: TargetInvocationException diferences jcornado
4/4/2004 4:20:54 PM
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!

[quoted text, click to view]
AddThis Social Bookmark Button