ArgumentOutOfRangeException Exception:

4 posts / 0 new
Last post
Shehryar
ArgumentOutOfRangeException Exception:

Why i'm getting ArgumentOutOfRangeException in Gurux.DLMS.Net.Example.Server

Exception thrown: 'System.ArgumentOutOfRangeException' in Gurux.DLMS.dll
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: cryptedData
at Gurux.DLMS.Secure.GXDLMSChippering.DecryptAesGcm(AesGcmParameter p, GXByteBuffer data) in C:\Users\Administrator\Downloads\Gurux.DLMS.Net-master\Development\Secure\GXDLMSChippering.cs:line 204
at Gurux.DLMS.Secure.GXCiphering.Gurux.DLMS.Secure.GXICipher.Decrypt(Byte[] title, GXByteBuffer data) in C:\Users\Administrator\Downloads\Gurux.DLMS.Net-master\Development\Secure\GXCiphering.cs:line 193
at Gurux.DLMS.GXDLMS.HandleGeneralCiphering(GXDLMSSettings settings, GXReplyData data) in C:\Users\Administrator\Downloads\Gurux.DLMS.Net-master\Development\GXDLMS.cs:line 2661
at Gurux.DLMS.GXDLMS.GetPdu(GXDLMSSettings settings, GXReplyData data) in C:\Users\Administrator\Downloads\Gurux.DLMS.Net-master\Development\GXDLMS.cs:line 2446
at Gurux.DLMS.GXDLMS.GetData(GXDLMSSettings settings, GXByteBuffer reply, GXReplyData data) in C:\Users\Administrator\Downloads\Gurux.DLMS.Net-master\Development\GXDLMS.cs:line 2784
at Gurux.DLMS.GXDLMSServer.HandleRequest(Byte[] buff, GXDLMSConnectionEventArgs connectionInfo) in C:\Users\Administrator\Downloads\Gurux.DLMS.Net-master\Development\GXDLMSServer.cs:line 614
The program '[6048] GuruxDLMSServerExample.exe' has exited with code -1073741510 (0xc000013a).

Kurumi
Kurumi's picture

Hi,
This is common if your ciphering settings are wrong. Data might be anything and exception is thrown.
Check you settings.
BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Shehryar

I know that my meter doesn't have any encryption. Meter sends its heartbeat, where I can see my meter number. Where is ciphering settings in Gurux.DLMS.Net.Example.Server ?

Shehryar Khan

Kurumi
Kurumi's picture

Hi,
I need more info to solve this.
Can you send your log from send bytes to me by email. We can check this.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi