question

Ketan-7786 avatar image
0 Votes"
Ketan-7786 asked ·

Method not found: System.MissingMethodException

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

dotnet-runtime-coredotnet-aspnet-core-generaldotnet-aspnet-core-webapidotnet-aspnet-core-security
· 4
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The error shows after upgrading 3.1? Which method missing, could you please show us more details, and make sure your dlls or packages have upgraded to match 3.1 version first.

1 Vote 1 ·

Hi JerryCai-MSFT ,
Actually we have one internal DLL which is creating problem i have updated all other Packages but the internal DLlL we cant update
if you make this conversation as private so i can give you more details

0 Votes 0 ·

You can't update an internal DLL that's calling a method on a System .NET Core 3.1 DLL that no longer exist. You have a problem, and the internal DLL code needs to change to address the problem.

Your second problem is that you want someone to publicly give up their email address. To me, that's not likely to happen, becuase how does anyone know that your machine has not been compromised, all email addresses are being harvested from your machine, and all of a sudden here comes bogus emails being sent to the person's email address. . :)

1 Vote 1 ·
Show more comments

1 Answer

DuaneArnold-0443 avatar image
0 Votes"
DuaneArnold-0443 answered ·

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

· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Arnold , Thanks for reply can you mark this as private i will share all the details

0 Votes 0 ·

I don't know anything about marking a thread 'private'. All I wan to see is where the exception is being thrown.

0 Votes 0 ·