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. Unable To Cast Object of Type Gurux.DLMS.GXStructure To Type Gurux.DLMS.GXArray

Unable to cast object of type Gurux.DLMS.GXStructure to type Gurux.DLMS.GXArray

By Karl , 1 April, 2026
Forums
Gurux.DLMS

After upgrading the Gurux.DLMS Nuget package from version 9.0.2508.2201 to 9.0.2603.3001, we get the error in the subject, when trying to read association view. I have tested this on EMH and LG E850 meters, but it might be an error that affects all metertypes.

ReadDataBlock(Client!.GetObjectsRequest(), reply);
Client.ParseObjects(reply.Data, false); <--- This throws the error.

Client is a GXDLMSSecureClient object.

The Exception I am getting:
Unable to cast object of type 'Gurux.DLMS.GXStructure' to type 'Gurux.DLMS.GXArray'.
System.InvalidCastException: Unable to cast object of type 'Gurux.DLMS.GXStructure' to type 'Gurux.DLMS.GXArray'.
at Gurux.DLMS.GXDLMSClient.ParseSNObjects(GXByteBuffer buff, Boolean onlyKnownObjects, Boolean ignoreInactiveObjects)
at Gurux.DLMS.GXDLMSClient.ParseObjects(GXByteBuffer data, Boolean onlyKnownObjects, Boolean ignoreInactiveObjects)
at Gurux.DLMS.GXDLMSClient.ParseObjects(GXByteBuffer data, Boolean onlyKnownObjects)

Karl

5 months 2 weeks ago

I have now tested some more…

I have now tested some more meter types, and it failes on these metertypes:
EMH LZQJ
LG E850

And it works on these metertypes:
CEWE Prometer 100
CEWE Premier 550
EMH SGM
MetCom
LG E360

I have not been able to test CEWE ProQ 100, as I currently do not have access to one of these meters.

Profile picture for user Kurumi

Kurumi

5 months 2 weeks ago

Hi, There was an issue with…

Hi,

There was an issue with short name referencing. This is now fixed to version 9.0.2604.0701.

BR,
Mikko

Karl

5 months 2 weeks ago

Thanks Mikko! I just found…

Thanks Mikko!

I just found the problem 20 seconds before I was notified about your answer.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

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

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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin