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. Forums
  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 4 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 4 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 4 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More

Who's new

  • Thomasqto
  • Uka Ibe
  • CTKNhZElptjSlOrpkXl
  • YCbccqfLGRMnlCWoJhXP
  • Malcolmactig
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin