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

4 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

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

New forum topics

  • Connecting to meter using Wrapper
  • DLMS Server / Meter emulation in Golang library
  • Unknown Baudrate
  • negative indexing for custom method/attribute
  • System title
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin