简体   繁体   中英

MissingMethodException after upgrading to ASP.NET Core 2.0

I tried to upgrade to .NET Core 2.0 but after changing the SDK for every project I get the following exception when trying to start the application

MissingMethodException: Method not found: 'System.Threading.Tasks.Task Microsoft.AspNetCore.Http.ISession.CommitAsync()'.

I tried to install the nuget package Microsoft.AspNetCore.Http.Features in which the missing method is, but it did not help. When trying to access the method from my C# code the intelli sense is showing it like expected.

Ok, I found the answer. We had a nuget package from ourself which had a reference to the old version of Microsoft.AspNetCore.Http.Features. After upgrading our own nuget package it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM