Technical FAQs

Ask a Question

Management Console not responding when viewing devices - "Unhandled exception has occured in your application."

Issue

When the 'Devices' button is clicked in Management Console, the program freezes / stops responding. The issue is fatal, requiring the process to be stopped via the Windows task manager. Viewing other 'tabs' in Management Console does not lead to any issue.

The following error message may appear:

See the notes for a full error stack.

Product Line

IONE 6.0.1
SPM 7.0.x
PME 7.2.x
PME 8.0

Environment

Management Console

Cause

User-specific XML configuration files have been corrupted, resulting in the error message.

Resolution

WARNING: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop).

  1. Close all instances of Management Console, then navigate to ...\Schneider Electric\Power Monitoring Expert\config\managementconsole.
  2. Backup all the .xml files in this directory.
  3. Delete all the .xml files in the directory after backing them up.
  4. Open Management Console again. The .xml files should be re-created, and the error message should stop.

Notes

************** Exception Text **************
System.ArgumentException: Item has already been added. Key in dictionary: '10' Key being
added: '10'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at DevExpress.XtraGrid.Views.Grid.GridRowCollection.Add(Int32 rowHandle, Int32 vIndex, Int32
level, Int32 totalHeight, Object rowKey)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.LoadRowsCore(GridRowsLoadInfo e)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.LoadRows(GridRowsLoadInfo e)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.Calc(Graphics g, Rectangle bounds)
at DevExpress.XtraGrid.Views.Base.ColumnView.DoInternalLayout()
at DevExpress.XtraGrid.Views.Base.ColumnView.CalculateLayout()
at DevExpress.XtraGrid.Views.Grid.GridView.LayoutChanged()
at DevExpress.XtraGrid.Views.Base.BaseView.OnPropertiesChanged()
at DevExpress.XtraGrid.Views.Base.ColumnView.OnColumnChanged(GridColumn column)
at DevExpress.XtraGrid.Columns.GridColumnCollection.OnChanged(GridColumn column)
at DevExpress.XtraGrid.Columns.GridColumn.OnChanged()
at DevExpress.XtraGrid.Columns.GridColumn.set_ColumnEdit(RepositoryItem value)
at ManagementConsole.UserInterface.WindowsForm.ManagementConsoleGridControl.CreateIcons()
at ManagementConsole.UserInterface.WindowsForm.ManagementConsoleGridControl.RefreshGrid
DataTable table)
at ManagementConsole.UserInterface.DeviceController.SavePropertyTable(DataTable table)
at ManagementConsole.UserInterface.WindowsForm.NomProperties.OkButton_Click(Object sender,
EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr
lparam)
Was this helpful?
What can we do to improve the information ?