Method not found: System.MissingMethodException

Ketan Patil 21 Reputation points
2021-04-12T06:57:37.02+00:00

I am upgrading .net core web api 2.2 to .net core 3.1 while runtime i am getting error like ,

'Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.AuthorizationServiceCollectionExtensions.AddAuthorization(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Action`1<Microsoft.AspNetCore.Authorization.AuthorizationOptions>)'.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,612 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,507 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,166 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Duane Arnold 3,211 Reputation points
    2021-04-12T15:20:28.177+00:00

    So the method is not in the 3.1 DLL. Just how are you seeing this exception in your code? Show the code....


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.