System.MissingMethodException after upgrading to ....
# help-with-umbraco
x
Hey lads, Since we upgraded to .NET9, we're getting this same exception periodically on our azure app service. We're using umbraco v14. All help appreciated.
Copy code
Message: Method not found: 'System.Threading.Tasks.Task`1<Int32> Microsoft.EntityFrameworkCore.RelationalQueryableExtensions.ExecuteDeleteAsync(System.Linq.IQueryable`1<!!0>, System.Threading.CancellationToken)'.

Parsed stack trace:
OpenIddict.EntityFrameworkCore.OpenIddictEntityFrameworkCoreTokenStore`5+<PruneAsync>d__44.MoveNext
System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start
System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.Start  
OpenIddict.EntityFrameworkCore.OpenIddictEntityFrameworkCoreTokenStore`5.PruneAsync
OpenIddict.Core.OpenIddictTokenManager`1.PruneAsync
OpenIddict.Core.OpenIddictTokenManager`1.OpenIddict.Abstractions.IOpenIddictTokenManager.PruneAsync
Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs.OpenIddictCleanupJob+<RunJobAsync>d__11.MoveNext
https://cdn.discordapp.com/attachments/1345342008448909373/1345342009120002099/image.png?ex=67c432e2&is=67c2e162&hm=26da7b446ece33217cdada79c7ca69ffa95b58ae74218db5a19c5a0094a682bf&
Also this appears in console when trying to retrieve content:
Copy code
Unable to prune OpenIddict tokens
System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<Int32> Microsoft.EntityFrameworkCore.RelationalQueryableExtensions.ExecuteDeleteAsync(System.Linq.IQueryable`1<!!0>, System.Threading.CancellationToken)'.
   at OpenIddict.EntityFrameworkCore.OpenIddictEntityFrameworkCoreTokenStore`5.PruneAsync(DateTimeOffset threshold, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at OpenIddict.EntityFrameworkCore.OpenIddictEntityFrameworkCoreTokenStore`5.PruneAsync(DateTimeOffset threshold, CancellationToken cancellationToken)
   at OpenIddict.Core.OpenIddictTokenManager`1.PruneAsync(DateTimeOffset threshold, CancellationToken cancellationToken)
   at OpenIddict.Core.OpenIddictTokenManager`1.OpenIddict.Abstractions.IOpenIddictTokenManager.PruneAsync(DateTimeOffset threshold, CancellationToken cancellationToken)
   at Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs.OpenIddictCleanupJob.RunJobAsync()
I've migrated the project from umbraco v14 -> umbraco v15, will say if it fixed the bug.
35 Views