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

1 month 1 week 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

1 month 1 week 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

1 month 1 week 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

  • Wed, 05/13/2026 - 10:33
    gurux.dlms.cpp 9.0.2605.1301
  • Mon, 05/11/2026 - 11:07
    Gurux.DLMS.Go 1.0.17
  • Mon, 04/27/2026 - 08:37
    Gurux.DLMS.Go 1.0.16
  • Thu, 04/23/2026 - 13:19
    Gurux.DLMS.Net 9.0.2604.2101
  • Tue, 04/14/2026 - 11:47
    gurux.dlms.java 4.0.93

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