I will describe below a very stupid issue that required today about 30 mins to resolve it. It is pretty simple but it can consume your precious time.
So, the short description: On my desktop PC I have installed 3 languages. As usually a RDP session was started to a virtual development machine... AX 2012 Client launched. In user interface the system works perfectly. But in development workspace the AX client crashing once I'm trying to view the code of any object. See below the full stack:
Application: Ax32.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Globalization.CultureNotFoundException
Stack:
at System.Globalization.CultureData.GetCultureData(Int32, Boolean)
at System.Globalization.CultureInfo.InitializeFromCultureId(Int32, Boolean)
at System.Globalization.CultureInfo..ctor(Int32, Boolean)
at System.Windows.Input.InputLanguageSource.get_CurrentInputLanguage()
at System.Windows.Input.InputLanguageManager.get_CurrentInputLanguage()
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.ConstructCaretGeometry()
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.UpdateCaret()
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.OnRender(System.Windows.Media.DrawingContext)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Canvas.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Canvas.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at MS.Internal.Helper.ArrangeElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
at System.Windows.Controls.ContentPresenter.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Control.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at MS.Internal.Helper.ArrangeElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
at System.Windows.Controls.ContentPresenter.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Control.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at Microsoft.Dynamics.AX.Editor.UI.Document.CreateView(Int32, Int32)
at Microsoft.Dynamics.AX.Editor.UI.EditorControlContainer.CreateView(Microsoft.Dynamics.AX.Editor.Interop.IDocument)
at Microsoft.Dynamics.AX.Editor.UI.EditorControlContainer.set_ActiveDocument(Microsoft.Dynamics.AX.Editor.Interop.IDocument)
at Microsoft.Dynamics.AX.Editor.UI.DocumentManager.set_ActiveDocument(System.String)
at <Module>.DocumentManager.SetActiveDocument(DocumentManager*, std.basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >*)
at <Module>._wWinMainCRTStartup()
The issue was generated by the fact that Windows did not identified the language initiated in my RDP session from my desktop PC (I guess).
So, the short description: On my desktop PC I have installed 3 languages. As usually a RDP session was started to a virtual development machine... AX 2012 Client launched. In user interface the system works perfectly. But in development workspace the AX client crashing once I'm trying to view the code of any object. See below the full stack:
Application: Ax32.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Globalization.CultureNotFoundException
Stack:
at System.Globalization.CultureData.GetCultureData(Int32, Boolean)
at System.Globalization.CultureInfo.InitializeFromCultureId(Int32, Boolean)
at System.Globalization.CultureInfo..ctor(Int32, Boolean)
at System.Windows.Input.InputLanguageSource.get_CurrentInputLanguage()
at System.Windows.Input.InputLanguageManager.get_CurrentInputLanguage()
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.ConstructCaretGeometry()
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.UpdateCaret()
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.OnRender(System.Windows.Media.DrawingContext)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Canvas.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Canvas.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at MS.Internal.Helper.ArrangeElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
at System.Windows.Controls.ContentPresenter.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Control.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at MS.Internal.Helper.ArrangeElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
at System.Windows.Controls.ContentPresenter.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at System.Windows.Controls.Control.ArrangeOverride(System.Windows.Size)
at System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect)
at System.Windows.UIElement.Arrange(System.Windows.Rect)
at Microsoft.Dynamics.AX.Editor.UI.Document.CreateView(Int32, Int32)
at Microsoft.Dynamics.AX.Editor.UI.EditorControlContainer.CreateView(Microsoft.Dynamics.AX.Editor.Interop.IDocument)
at Microsoft.Dynamics.AX.Editor.UI.EditorControlContainer.set_ActiveDocument(Microsoft.Dynamics.AX.Editor.Interop.IDocument)
at Microsoft.Dynamics.AX.Editor.UI.DocumentManager.set_ActiveDocument(System.String)
at <Module>.DocumentManager.SetActiveDocument(DocumentManager*, std.basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >*)
at <Module>._wWinMainCRTStartup()
The issue was generated by the fact that Windows did not identified the language initiated in my RDP session from my desktop PC (I guess).
So, check your current language settings firstly in case of similar issues.
After uninstalling/reinstalling many time VS2013/2015 and .NET framework, this is the solution for all these days my Visual Studio was crashing when opening aspx files. Thanks a lot!!!
ReplyDelete