NAV 2016 User personalization card crashes application

Andy_Smith
Member Posts: 31
It's a bit odd, as if I restart the service tier I can access the user personalizations and there are no crashes. If I close that session, then attempt to access user personalization card again the application will crash with generic error saying the application encountered an error and has to close (debugger does not activate if active, it just crashes). We have no customizations to user personalization table, card or list.
Anybody have any ideas?
Edit: Also, running user personalization table has same effect. First time after restarting tier it runs fine, no record values amiss with our 20 or so users. Restart the client and run it again and it will crash NAV.
Anybody have any ideas?
Edit: Also, running user personalization table has same effect. First time after restarting tier it runs fine, no record values amiss with our 20 or so users. Restart the client and run it again and it will crash NAV.
0
Best Answer
-
Wisa, unbelievably, what it turned out to be was that the default windows theme (as in the desktop theme completely unrelated to NAV) was either corrupt or wrong version for this version of windows. If you go into windows themes and look at the various themes the "windows default" showed an error saying that the theme could not be displayed. Simply changing to a different theme fixed the bug. At a guess, some parts of some pages were trying to grab a theme element that did not exist in the garbled theme, and when that happened, it would die a mess death.5
Answers
-
What version are you using?
What does the eventlog say?Austrian NAV/BC Dev0 -
2016 RTM
Error Log:
Type: System.InvalidOperationException
Message: Visual Styles-related operation resulted in an error because visual styles are currently disabled in the client area.
StackTrace:
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass6.<DoRethrowWithCatchException>b__4()
at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(Func`1 execute)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(Exception exception, Boolean designMode)
Source: Microsoft.Dynamics.Nav.Client.WinClient
HResult: -2146233079
Type: System.InvalidOperationException
Message: Visual Styles-related operation resulted in an error because visual styles are currently disabled in the client area.
StackTrace:
at System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsCombinationDefined(String className, Int32 part)
at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor(String className, Int32 part, Int32 state)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ComboBoxVistaRenderer.DrawDropDownButton(Graphics graphics, Rectangle bounds, ComboBoxState state, Boolean rightToLeft)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ViewBase.PaintLookup(Graphics graphics, Rectangle rect, Boolean mouseOver, Boolean clicked, Boolean enabled, RightToLeft rightToLeft)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ViewBase.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: System.Windows.Forms
HResult: -2146233079
0 -
Had that error while using some Reports in RTM.
MS fixed the problem in CU3 (i think). Try updating to the latest CU. That should fix it for you.Austrian NAV/BC Dev0 -
Wisa, unbelievably, what it turned out to be was that the default windows theme (as in the desktop theme completely unrelated to NAV) was either corrupt or wrong version for this version of windows. If you go into windows themes and look at the various themes the "windows default" showed an error saying that the theme could not be displayed. Simply changing to a different theme fixed the bug. At a guess, some parts of some pages were trying to grab a theme element that did not exist in the garbled theme, and when that happened, it would die a mess death.5
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions