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

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More

Who's new

  • Asier Sierra
  • BlessyAnn
  • sravya.thota@m…
  • Diwakar
  • williamorussell
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin