Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. 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

4 days 3 hours 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

3 days 23 hours 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

3 days 23 hours ago

Thanks Mikko! I just found…

Thanks Mikko!

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

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 04/07/2026 - 17:17
    Gurux.DLMS.Python 1.0.197
  • Tue, 04/07/2026 - 15:03
    gurux.dlms.c 9.0.2604.0701
  • Tue, 04/07/2026 - 14:50
    gurux.dlms.java 4.0.91
  • Tue, 04/07/2026 - 14:00
    Gurux.DLMS.Net 9.0.2604.0701
  • Mon, 03/30/2026 - 15:39
    gurux.dlms.c 9.0.2603.3001

New forum topics

  • Issue when reading Itron Type620 meter
  • Handling Unexpected Disconnects
  • DLMS Communication Issue – No Response (L&T Meter via USB Probe)
  • Unable to cast object of type Gurux.DLMS.GXStructure to type Gurux.DLMS.GXArray
  • How to properly invoke KeyAgreement
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin