Re: MethodInfo.Invoke and TargetInvocationException

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Lasse Vågsæther Karlsen" <lasse@xxxxxxxxxxx> wrote:

Is there a way for me to re-throw the inner exception so that Visual
Studio pops up at the method being invoked with the exception that was
thrown there, instead of always stopping in our base class?

Choose "Exceptions" from the Debug menu, expand "Common Language Runtime
Exceptions", and tick the Thrown box next to
System.Reflection.TargetInvocationException. Then, whenever that
exception occurs, Visual Studio will break immediately at that point.

Eq.


.



Relevant Pages

  • Re: Validating file names
    ... running Novel, from your G: running Linux file system, from your H: running ... I am not saying one does not exist! ... file file and handle any exceptions that were thrown. ... If an exception is thrown then the specified ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Using an ActiveX ocx control on a Webform
    ... > download the ActiveX I can Automate the ActiveX object through the ... > Exception of type InvalidActiveXStateException was thrown. ... > tried using the item in the design mode of a regular .NET Windows ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Exception-Objekt freigeben
    ... When an exception is thrown, the exception object that is thrown is destroyed ... we have added the AcquireExceptionObject and ReleaseExceptionObject functions. ... then the thrown object is not destroyed by the RTL, but assumed to be in control ...
    (de.comp.lang.delphi.misc)
  • Re: exception handling in complex Python programs
    ... errors possibly thrown by open, or leave it to the caller? ... def do_something: ... have to couple the exception type with the function --- between file ... Python 3 and an IOError is thrown in the other three cases <bashes ...
    (comp.lang.python)
  • Re: how to change method return type from void to boolean
    ... Will the method return in case of exception thrown ... final OperationListener operationListener) { ... However my problem is that I need to determine what was wrong and show it to the user (in gui layer). ...
    (comp.lang.java.programmer)