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>)'.

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET .NET Runtime
Developer technologies ASP.NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. Duane Arnold 3,216 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.