You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I'm getting this error when trying to add migration after upgrading the project in Package Manager Console...
'Microsoft.AspNetCore.Authentication.AuthenticationBuilder Microsoft.Extensions.DependencyInjection.OAuthExtensions.AddOAuth(Microsoft.AspNetCore.Authentication.AuthenticationBuilder, System.String, System.String, System.Action`2<System.__Canon,!!2>)'.
Unable to create an object of type 'ApplicationDbContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
The text was updated successfully, but these errors were encountered:
Hi!
Yes, all seems is the correct version.
I had to put comment on this fragment in Startup.cs. After I commented it everything works fine. Can you explain why please? :
services.AddAuthentication().AddFacebook(Options =>
{
Options.AppId = "979166549209276";
Options.AppSecret = "0136648c5c6de648ac4d61b2d6534281";
});
Hi
I'm getting this error when trying to add migration after upgrading the project in Package Manager Console...
'Microsoft.AspNetCore.Authentication.AuthenticationBuilder Microsoft.Extensions.DependencyInjection.OAuthExtensions.AddOAuth(Microsoft.AspNetCore.Authentication.AuthenticationBuilder, System.String, System.String, System.Action`2<System.__Canon,!!2>)'.
Unable to create an object of type 'ApplicationDbContext'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
The text was updated successfully, but these errors were encountered: