Method not found: System.MissingMethodException

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

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.
2,516 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,172 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
953 questions
{count} votes

1 answer

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

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