# MethodInvocationException Class

Namespace: [Qlik.Sense.JsonRpc](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.htm)  
Assembly: Qlik.Sense.JsonRpc.dll

The Exception thrown when a method has gone wrong on the server during execution.

## Inheritance

* System.Object
  * System.Exception
    * System.SystemException
      * MethodInvocationException

        [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.MethodInvocationException.htm)
        #### Derived Classes
        * [MethodInvocationException](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.MethodInvocationException.htm)

## Syntax

```
public class MethodInvocationException : SystemException, ISerializable, _Exception
```

## Constructors

| Name | Description |
| --- | --- |
| [MethodInvocationException(String, MethodInvocationException.Error)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.MethodInvocationException.-ctor.htm#Qlik_Sense_JsonRpc_MethodInvocationException__ctor_System_String_Qlik_Sense_JsonRpc_MethodInvocationException_Error_) | Initializes a new instance of the MethodInvocationException class with a specified error message and a reference to the Qlik Sense error that is the cause of this exception. |

## Properties

| Name | Description |
| --- | --- |
| [Data](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.MethodInvocationException.Data.htm#Qlik_Sense_JsonRpc_MethodInvocationException_Data) | Gets a collection of key/value pairs that provide additional user-defined information about the exception. |
| [InvocationError](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.MethodInvocationException.InvocationError.htm#Qlik_Sense_JsonRpc_MethodInvocationException_InvocationError) | Gets the Qlik Sense error that caused the current exception |