I’ve run into something I’ve never seen before. While trying to add a control to a customized version of the Customer Display form, I get the following error
Application Error
Exception caught in: Ice.Lib.EpiClientLib
Error Detail
============
Message: Unable to create an instance of the target.
Program: Ice.Lib.EpiClientLib.dll
Method: CreateInstance
After clicking OK the warning goes away. But the instant my mouse goes over the form, I get an new error. Watch the GIF below, and the instant the mouse “leaves” the Customization Tools Dialog, and is over the form, the error pops up.
The details of the new error are:
Application Error
Exception caught in: Ice.Lib.EpiClientLib
Error Detail
============
Message: Object reference not set to an instance of an object.
Program: Ice.Lib.EpiClientLib.dll
Method: ControlCreateMouseMoveHandler
Client Stack Trace
==================
at Ice.Lib.Customization.ControlEditManager.ControlCreateMouseMoveHandler(Object sender, MouseEventArgs e)
at System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.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)