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 2 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 2 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 2 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, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin