Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Node
  3. ArgumentOutOfRangeException Exception:

ArgumentOutOfRangeException Exception:

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Shehryar , 21 March, 2017
Forums
Gurux.Net

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).

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

ArgumentOutOfRangeException Exception:

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

Mikko

Shehryar

9 years 6 months ago

ArgumentOutOfRangeException Exception:

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 ?

Profile picture for user Kurumi

Kurumi

9 years 6 months ago

ArgumentOutOfRangeException Exception:

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

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
  • dw772
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin