-
Notifications
You must be signed in to change notification settings - Fork 2
Description
with this lines of code
private void button1_Click(object sender, EventArgs e)
{
ProxySettings proxySettings = new ProxySettings();
Client myClient = new Client("http://coocgnido001.coo.local/src/jsonrpc.php", "<myapikey>", "en", proxySettings);
myClient.Username = "admin";
myClient.Password = "<mypwd>";
idoit idoit = new idoit(myClient);
Version response = new Version();
response = idoit.Version();
**I get the following error. what do I do wrong? **
System.AggregateException
HResult=0x80131500
Nachricht = Mindestens ein Fehler ist aufgetreten.
Quelle = mscorlib
Stapelüberwachung:
bei System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
bei System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
bei Idoit.API.Client.Idoit.Idoit.Version()
bei iDoitClient.Form1.button1_Click(Object sender, EventArgs e) in C:\Users\pkv00014\OneDrive - Verband der Privaten Krankenversicherung e.V\Desktop\iDoitClient\iDoitClient\Form1.cs: Zeile33
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(Form mainForm)
bei iDoitClient.Program.Main() in C:\Users\pkv00014\OneDrive - Verband der Privaten Krankenversicherung e.V\Desktop\iDoitClient\iDoitClient\Program.cs: Zeile19
Innere Ausnahme 1:
AggregateException: Mindestens ein Fehler ist aufgetreten.
Innere Ausnahme 2:
JsonRpcClientException: The service response is invalid
Innere Ausnahme 3:
JsonRpcSerializationException: The response error code is invalid
Innere Ausnahme 4:
ArgumentOutOfRangeException: The specified error code is outside the allowable range
Parametername: code
Der tatsächliche Wert war -32604.