locked
Error when entering keypad numbers in Voice Response Debbuging Window RRS feed

Answers

  • This error message comes from TargetInvocationException.  You need to look at the InnerException.  Unfortunately the default implementation of HandleGeneralFault in your workflow only looks at Exception.Message, whereas Exception.ToString would contain the inner exceptions as well.

     

    In the debugger, go up the stack to the caller of LogError.  If it is HandleGeneralError, do SHIFT-F9 and put in this.generalFaultHandler.Fault.ToString(), then click the icon at the end of the string to view the full string.  This will give you the messages from all of the inner exceptions, which should be more useful.

     

    I suggest re-implementing HandleGeneralFault as: 

    Code Snippet

    LogError(generalFaultHandler.Fault.ToString()

     

    or, to get rid of the TargetInvocationExceptions more accurately

    Code Snippet

    Exception innerException = generalFaultHandler.Fault;

    while (innerException is System.Reflection.TargetInvocationException

           && innerException.InnerException != null)

    {

        innerException = innerException.InnerException;

    }

     

    LogError(innerException.ToString());

     

     

    Thursday, May 10, 2007 8:18 AM

All replies

  • Hi JaviCace,

    Can you let us know the status of your issue? If you have been able to resolve it, can you share it with the forums? If not, can you let us know ASAP?

    Monday, April 30, 2007 6:14 PM
  • This error message comes from TargetInvocationException.  You need to look at the InnerException.  Unfortunately the default implementation of HandleGeneralFault in your workflow only looks at Exception.Message, whereas Exception.ToString would contain the inner exceptions as well.

     

    In the debugger, go up the stack to the caller of LogError.  If it is HandleGeneralError, do SHIFT-F9 and put in this.generalFaultHandler.Fault.ToString(), then click the icon at the end of the string to view the full string.  This will give you the messages from all of the inner exceptions, which should be more useful.

     

    I suggest re-implementing HandleGeneralFault as: 

    Code Snippet

    LogError(generalFaultHandler.Fault.ToString()

     

    or, to get rid of the TargetInvocationExceptions more accurately

    Code Snippet

    Exception innerException = generalFaultHandler.Fault;

    while (innerException is System.Reflection.TargetInvocationException

           && innerException.InnerException != null)

    {

        innerException = innerException.InnerException;

    }

     

    LogError(innerException.ToString());

     

     

    Thursday, May 10, 2007 8:18 AM