Bug Report T1282332
Visible to All Users

Chart for Blazor - "System.ObjectDisposedException: The CancellationTokenSource has been disposed" exception is thrown if DxChart is used in a WASM application when navigating away from the page with DxChart

created 2 days ago (modified 2 days ago)

Steps to reproduce:

  1. Open the attached WASM application.
  2. Navigate to the Counter page.
  3. Before the chart is loaded, navigate to another page.

Expected results:

No exception is thrown.

Current results:

The following exception is thrown:

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: The CancellationTokenSource has been disposed.
System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowIfDisposed()
at System.Threading.CancellationTokenSource.get_Token()
at DevExpress.Blazor.ClientComponents.Internal.ClientComponentJSInterop.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Additional information:

The attached sample project and video illustrate the issue.

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.