Gcobani Mkontwana

Gcobani Mkontwana

  • 565
  • 1.9k
  • 406.7k

System.ArgumentNullException:Value cannot be null

Mar 3 2020 7:16 AM
Hi Team
 
I am facing this issue on my IdentityConfig.cs using asp.net mvc to build user login registration. How do i fix this issue? Please assist me, thanks.
  1. public class ApplicationSignInManager : SignInManagerstring>  
  2.    {  
  3.        public ApplicationSignInManager(ApplicationUserManager userManager, IAuthenticationManager authenticationManager)  
  4.            : base(userManager, authenticationManager) // System exception here.  
  5.        {  
  6.        }  
  7.   
  8.        public override Task CreateUserIdentityAsync(ApplicationUser user)  
  9.        {  
  10.            return user.GenerateUserIdentityAsync((ApplicationUserManager)UserManager);  
  11.        }  
  12.   
  13.        public static ApplicationSignInManager Create(IdentityFactoryOptions options, IOwinContext context)  
  14.        {  
  15.            return new ApplicationSignInManager(context.GetUserManager(), context.Authentication);  
  16.        }  
  17.    }  
 
 

Answers (8)