Bug Report T1280255
Visible to All Users

Dashboard for WinForms - Grid item with Drill Down crashes with the NonPrimitiveTypeDeserializationException exception on certain actions

created 5 days ago (modified 3 days ago)

Steps to reproduce:

  1. Run the attached code example.
  2. Click on the Grid item so that it accepts focus.
  3. Press Enter.

Expected results:

No errors.

Current results:

Call Stack
DevExpress.Data.Internal.XtraSerializationSecurityTrace.NonPrimitiveTypeDeserializationException HResult=0x8013150A Message=The DevExpress.DashboardCommon.ViewerData.AxisPointTuple type is not primitive and not in the list of trusted types and therefore is not deserialized due to security reasons. See the https://go.devexpress.com/Jan2019_Deserialization_Issue_Tag_Property.aspx article for additional information. Source=DevExpress.Data.v24.2 StackTrace: at DevExpress.Data.Internal.SafeTypeResolver.EnsureTypeIsPrimitiveOrEnum(String typeName, Type type, Boolean isTypeTrusted, Boolean throwOnError) at DevExpress.Data.Internal.SafeTypeResolver.TryGetPrimitiveOrTrustedTypeOrThrow(String typeName, Boolean throwOnError) at DevExpress.Data.Internal.SafeTypeResolver.GetPrimitiveOrTrustedType(String typeName, IDictionary`2 additionalTrustedTypes, Nullable`1 throwOnError) at DevExpress.DashboardCommon.Native.XmlHelper.LoadObjectFromXml(XElement element, Boolean raiseException) at DevExpress.DashboardCommon.Native.XmlHelper.LoadInteractivityValuesFromXml(XElement parentElement, String xmlList) at DevExpress.DashboardCommon.DashboardItemState.LoadFromXml(XElement element) at DevExpress.DashboardCommon.DashboardState.LoadFromXml(XDocument document) at DevExpress.DashboardCommon.DashboardState.Clone() at DevExpress.DashboardWin.DashboardViewer.GetDashboardState() at DevExpress.DashboardWin.DashboardViewer.RaiseDashboardStateChanged() at DevExpress.DashboardWin.Native.DataDashboardItemViewer.<SubscribeInteractivityController>b__141_5(Object s, EventArgs e) at DevExpress.DashboardCommon.Native.InteractivityControllerBase.RaiseStateChanged(Object sender, EventArgs args) at DevExpress.DashboardCommon.Native.InteractivityBehavior.RaiseStateChanged() at DevExpress.DashboardCommon.Native.InteractivityBehavior.DrillDown(Object value, Boolean forceUpdate) at DevExpress.DashboardCommon.Native.InteractivityController.DrillDown(Object value) at DevExpress.DashboardWin.Native.GridDashboardItemViewer.OnGridControlKeyUp(Object sender, KeyEventArgs e) at System.Windows.Forms.Control.OnKeyUp(KeyEventArgs e) at DevExpress.XtraGrid.GridControl.OnKeyUp(KeyEventArgs e) at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m) at System.Windows.Forms.Control.ProcessKeyMessage(Message& m) at System.Windows.Forms.Control.WmKeyChar(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m) at DevExpress.XtraGrid.GridControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at DevExpress.Utils.Drawing.Helpers.NativeMethods.UnsafeNativeMethods.DefSubclassProc(IntPtr hWnd, IntPtr Msg, IntPtr wParam, IntPtr lParam) at DevExpress.Utils.Drawing.Helpers.Win32SubclasserFactory.Win32Subclasser.SubClassProcInner(IntPtr hWnd, IntPtr Msg, IntPtr wParam, IntPtr lParam, IntPtr uIdSubclass, IntPtr dwRefData) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at T1279944.Program.Main() in C:\D\MyWork\VCProjects\T1279944\Program.cs:line 18

Answers approved by DevExpress Support

created a day ago

We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

Important Notes:

  • Hotfixes may be unavailable for Early Access/Beta builds or updates set for release within a week.
  • .NET only: in the NuGet Package Manager, use your personal NuGet feed and check the "Include prerelease" option to view the hotfix package in the "Updates" tab.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.