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)
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.
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
Thanks Mikko! I just found…
Thanks Mikko!
I just found the problem 20 seconds before I was notified about your answer.