-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Created very simple Theme project only two views Main Page and SetThemePage using shell and flyout.
Compiles launches in Andrid and iOS. .Net 7 has a windows launch bug.
When Theme button is pressed System.Reflection.TargetInvocationException is thrown I have spent several days trying to resolve.
System.Reflective type (null). How is this corrected with.
Following this link https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/7.0/reflection-invoke-exceptions
If you don't use BindingFlags.DoNotWrapExceptions when calling Invoke(), and you have catch statements around the Invoke() APIs for exceptions other than TargetInvocationException, consider changing or removing those catch statements. The other exceptions will no longer be thrown as a result of the invocation. If, however, you're catching exceptions from argument validation that happens before attempting to invoke the target method, you should keep those catch statements. Invalid arguments that are validated before attempting to invoke are thrown without being wrapped with TargetInvocationException and did not change semantics.
I am out of my knowledge zone.
Happy New Year and thanks for any assistance.