Hi everyone,
We're encountering a recurring crash in the Microsoft Dynamics AX 2009 client. Below is the exception message:
System.ArgumentOutOfRangeException: Value of '-18' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
at System.Windows.Forms.ScrollBar.set_Value(Int32 value)
at Microsoft.Dynamics.Kernel.Client.AreaPage.OnMouseWheel(MouseEventArgs e)
...
It seems related to the scroll bar value going out of bounds, possibly due to mouse wheel input. This issue occurs intermittently during regular client usage, and it causes the AX client to crash with the dialog box showing the full .NET exception trace.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '-18' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
at System.Windows.Forms.ScrollBar.set_Value(Int32 value)
at Microsoft.Dynamics.Kernel.Client.AreaPage.OnMouseWheel(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseWheel(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.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)
************** Loaded Assemblies **************
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9179 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.Dynamics.Kernel.Client
Assembly Version: 5.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/50/Client/Bin/Microsoft.Dynamics.Kernel.Client.DLL
----------------------------------------
Assembly Version: 9.0.30729.9635
Win32 Version: 9.00.30729.9635
CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9635_none_508ff82ebcbafee0/msvcm90.dll
----------------------------------------
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9157 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9157 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.Dynamics.Framework.UI.WinForms.Controls
Assembly Version: 1.1.0.0
Win32 Version: 1.1.10419.04
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Dynamics.Framework.UI.WinForms.Controls/1.1.0.0__31bf3856ad364e35/Microsoft.Dynamics.Framework.UI.WinForms.Controls.dll
----------------------------------------
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9157 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9157 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Dynamics.Framework.UI.Navigation
Assembly Version: 1.1.0.0
Win32 Version: 1.1.10419.04
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Dynamics.Framework.UI.Navigation/1.1.0.0__31bf3856ad364e35/Microsoft.Dynamics.Framework.UI.Navigation.dll
----------------------------------------
Assembly Version: 5.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/50/Client/Bin/Microsoft.Dynamics.Xml.DLL
----------------------------------------
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9157 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.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
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.
Questions:
-
Has anyone else encountered this scroll bar value exception?
-
Is there a known hotfix or update to address this bug?
-
Any recommended workaround to prevent the crash (e.g., disable mouse wheel input, UI changes)?
We’d appreciate any advice or known solutions to prevent this exception from crashing the client.
Thank you!