Ticket T974213
Visible to All Users
Duplicate

Bursts of exceptions on Blazor project on production IIS hosted

created 4 years ago

I have created a rather simple blazor xaf project hosted on windows with IIS. Also, I am logging all exceptions with nlog. I seem to find like "bursts" of like 20-30 exceptions, all generated within 2-3 seconds, like once a day. It does not have to do with IIS recycling though as the time is very different.

I don't see any problem though from users. No hookups happen in the UI. The logs seem to be generated in the background.

The exceptions look like below. Is this normal behavior? I do see DevExpress components in the stack trace.

Code
Logger: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost Unhandled exception in circuit 'mr96vM30lECvrqOpi8doyxsdgJIdhXSG232U9TtYMYHivc'. System.Threading.Tasks.TaskCanceledException: A task was canceled. at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at DevExpress.Blazor.Internal.Grid.DxDataGridHeadCell`1.<InitClientSide>b__24_2(DataGridColumnResizeMode mode, Boolean hasScrolling, ScrollBarMode horizontalScrollBarMode, Boolean hasPager, ISubject`1[] visibleIndex, ISubject`1[] groupIndex) at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state) at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource`1 completion, SendOrPostCallback d, Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)
Comments (2)
HK HK
Harry Kakoulidis 4 years ago

    It seems that this happens more ofter, after pressing the F5 (reload) a few times on a blazor view with a list view.

    M M
    Martin Praxmarer - DevExpress MVP 4 years ago

      Just had the same exceptions in my visual studio output while testing locally

      Answers approved by DevExpress Support

      created 4 years ago

      Hello Harry,

      According to the description, the problem looks similar to the issue researched in the following thread: DataGrid for Blazor - The TaskCancelled exception is thrown when DataGrid has the Paging feature enabled and navigation between application pages occurs. The exceptions are thrown in DataGrid but they don't cause any troubles in the UI. We have fixed this issue so that such exceptions are handled in our code. Feel free to download the hotfix and test it on your side.

      Please let us know if this helps.

      Thanks,
      Helen

        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.