Base solution for your next web application
Open Closed

Task Cancelled Error #9419


User avatar
0
kansoftware created

Hi,

For some services we are getting following error. Please help how to resolve the same

"System.Threading.Tasks.TaskCanceledException: A task was canceled. at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable1 asyncEnumerable, CancellationToken cancellationToken) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.FirstOrDefaultAsync(TPrimaryKey id) at Abp.Domain.Uow.UnitOfWorkInterceptor.InternalInterceptAsynchronous[TResult](IInvocation invocation) at CDP.SprngSaas.FoodLogsAppService.Create(CreateOrEditFoodLogDto input) in D:\2020\Projects\SprngSaas\trunk\src\CDP.Application\SprngSaas\FoodLogsAppService.cs:line 382 at Abp.Authorization.AuthorizationInterceptor.InternalInterceptAsynchronous(IInvocation invocation) at Abp.Domain.Uow.UnitOfWorkInterceptor.InternalInterceptAsynchronous(IInvocation invocation) at Abp.Auditing.AuditingInterceptor.InternalInterceptAsynchronous(IInvocation invocation) at Abp.Runtime.Validation.Interception.ValidationInterceptor.InternalInterceptAsynchronous(IInvocation invocation) at CDP.SprngSaas.FoodLogsAppService.CreateOrEdit(CreateOrEditFoodLogDto input) in D:\2020\Projects\SprngSaas\trunk\src\CDP.Application\SprngSaas\FoodLogsAppService.cs:line 266 at lambda_method(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.Controlle..."


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    Maybe related to https://support.aspnetzero.com/QA/Questions/8611/exception-when-impersonating-tenant-user#answer-f943da5c-8281-7beb-a346-39f3b1d67fc5