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. Forums
  3. Unable To Click On Checkbox In 0.0.94.91.18.255 .

Unable to click on checkbox in 0.0.94.91.18.255 .

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Mithun Tiruvedula , 8 June, 2021
Forums
DLMSDirector

Hi Mikko,

I want to write to the 0.0.94.91.18.255 (Event Status Word 1 (ESW-1)) object, but am unable to change the bits by clicking on the checkbox as I am getting the following error:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
at Gurux.DLMS.UI.GXValueField.SetDirty(Boolean dirty, Object value)
at System.Windows.Forms.CheckedListBox.OnItemCheck(ItemCheckEventArgs ice)
at System.Windows.Forms.CheckedListBox.LbnSelChange()
at System.Windows.Forms.CheckedListBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ListBox.WndProc(Message& m)
at System.Windows.Forms.CheckedListBox.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
GXDLMSDirector
Assembly Version: 8.2.2106.701
Win32 Version: 8.2.2106.0701
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/GXDLMSDirector.exe
----------------------------------------
Gurux.Common
Assembly Version: 8.1.2106.101
Win32 Version: 8.1.2106.101
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/Gurux.Common.DLL
----------------------------------------
Gurux.MQTT
Assembly Version: 8.1.2104.801
Win32 Version: 8.1.2104.801
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/Gurux.MQTT.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Gurux.DLMS.AMI.UI
Assembly Version: 8.1.2104.2901
Win32 Version: 8.1.2104.2901
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/Gurux.DLMS.AMI.UI.DLL
----------------------------------------
Gurux.DLMS
Assembly Version: 9.0.2106.401
Win32 Version: 9.0.2106.401
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/Gurux.DLMS.DLL
----------------------------------------
Gurux.DLMS.UI
Assembly Version: 9.0.2106.701
Win32 Version: 9.0.2106.0701
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/Gurux.DLMS.UI.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Deployment
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
Gurux.Net
Assembly Version: 8.1.2106.102
Win32 Version: 8.1.2106.102
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/Gurux.Net.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Data.SqlXml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Gurux.Serial
Assembly Version: 8.1.2106.102
Win32 Version: 8.1.2106.102
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/Gurux.Serial.DLL
----------------------------------------
Gurux.Terminal
Assembly Version: 8.1.2106.101
Win32 Version: 8.1.2106.101
CodeBase: file:///C:/Users/user/AppData/Local/Apps/2.0/WZKP6ZQ0.QJA/3X2TEC7D.EX8/gxdl..tion_fac3cc4fecb816b3_0008.0002_88c486abacb59092/Gurux.Terminal.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

PFA screenshot of the error.
Is there a workaround on writing to this object without using checkbox?

Thank you!

Image
Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

Usually, you don't set status word. The meter will do it. I'll create an issue from this. In the meantime you can write normal value if you select Gurux as the manufacturer and set the correct client address.

Now you can see only plain integer value.
BR,
Mikko

Mithun Tiruvedula

5 years ago

Hi Mikko,

Hi Mikko,

Yes we usually do not write to ESW (0.0.94.91.18.255), but the manufacturer is recommending it.

I am able to connect with 'Gurux' as manufacturer, but the object access is now "Read" only, if the manufacturer is 'Indian Standard' the access is "Read, Write".

Anything I can do to change that.

Profile picture for user Kurumi

Kurumi

5 years ago

Hi Mithun,

Hi Mithun,

Meter defines the access rights. If it's read-only you need to connect with a different access level.
I have to say, that usually you can't change this. Verify this from the meter manufacturer.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin