What is the problem ASP.Net Core Error CS1061

Severity Code Description Project File Line Suppression State
Error CS1061 ‘IServiceCollection’ does not contain a definition for
‘AddDefaultIdentity’ and no accessible extension method
‘AddDefaultIdentity’ accepting a first argument of type
‘IServiceCollection’ could be found (are you missing a using directive
or an assembly
reference?) WebHesab C:UsersDELLsourcereposWebHesabWebHesabStartup.cs 36 Active

What is the problem ASP.Net Core Error CS1061

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

You would need to add a reference to the Microsoft.AspNetCore.Identity.UI nuget package in order to use AddDefaultIdentity.

dotnet add package Microsoft.AspNetCore.Identity.UI --version 5.0.2


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x