web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Dynamics AX 2009 Client Crash - System.ArgumentOutOfRangeException in ScrollBar

(2) ShareShare
ReportReport
Posted on by 12

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'.

Parameter name: Value

   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 **************

mscorlib

    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

    Win32 Version: 5.0.593.0

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/50/Client/Bin/Microsoft.Dynamics.Kernel.Client.DLL

----------------------------------------

msvcm90

    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

----------------------------------------

System.Windows.Forms

    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

----------------------------------------

System

    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

----------------------------------------

System.Drawing

    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

----------------------------------------

System.Configuration

    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

----------------------------------------

System.Xml

    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

----------------------------------------

Microsoft.Dynamics.Xml

    Assembly Version: 5.0.0.0

    Win32 Version: 5.0.593.0

    CodeBase: file:///C:/Program%20Files%20(x86)/Microsoft%20Dynamics%20AX/50/Client/Bin/Microsoft.Dynamics.Xml.DLL

----------------------------------------

Accessibility

    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

enabled.

 

For example:

 

 

   

 

 

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:

  1. Has anyone else encountered this scroll bar value exception?

  2. Is there a known hotfix or update to address this bug?

  3. 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!

Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at
    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.
     
    Do you which form it was? Maybe you have a bug in a customization there, or at least you'll know which forum to focus on when trying to reproduce the problem.
  • Suggested answer
    JC-16060140-0 Profile Picture
    12 on at
     
    It happens in all forms. No customization is done before. We have also tried reinstalling from scratch but issue still persists.
  • Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at
    Okay, so please give us some context. You seem to be saying that every single form in AX is crashing recurringly. What exactly do you mean by "recurring"? Does it happen to all users? When did it start happening? I'm assuming it's not from the beginning, otherwise you wouldn't go live with that. Does the client version matches the AOS version?
     
    By the way, your reply isn't a suggested solution of your problem, therefore you shouldn't have marked it as a suggested answer.
  • JC-16060140-0 Profile Picture
    12 on at
    @Martin Dráb We purchased a brand new Dell laptop for user. The issue only began once we installed AX on this new laptop. We had no issues with installing on previous laptops (mix of Windows 10 & 11 and from different brands). Whenever user uses the mouse wheel on any forms in AX, the exception error will pop out. All other current users do not have this problem and are using their AX just fine. Client version does match AOS version.
     
    The new laptop in question is a Dell latitude 5350 with Intel Core Ultra 5 - 125U processor.
  • Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at
    Aha, so it's about a single machine.
     
    Unfortunately, I don't have many ideas; the AX client version was the main one. Check if you're using the latest version of AX kernel. A long shot, but you could try different drivers for mouse and the graphics. You could even debug the kernel code, but I'm not sure it's worth the effort.
     
    The usual approach would be logging a support request, but it's not an option in your case. Even the extended supported of AX 2009 ended three years ago.
     
    If everything fails, the user could at least use RDP to log on a server with an AX client installed.
     
    By the, you shouldn't mark a reply a suggested answer if it's not a suggested solution of the question that the thread is about.
  • JC-16060140-0 Profile Picture
    12 on at
    @Martin Dráb Thanks for the tips. I will try some driver changes first and see, if anything works I will add it here again.
     
    I made a mistake of ticking the Suggested Answer checkbox but now I don't know how to undo it.
  • Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at
    Even I as a moderator can't change the Suggested Answer flag (not even on my own posts). It used to be possible on the previous platform. I don't know if it's a missing feature that haven't got enough priority or there is a reason befind it, but I don't see any reason why it shouldn't be editable.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans