I have similiar error
- using Microsoft.Owin.Security;
- private IAuthenticationManager AuthenticationManager
- {
- get
- {
- return HttpContext.GetOwinContext().Authentication;
- }
- }
-
-
-
- public async Task ExternalLoginConfirmation(ExternalLoginConfirmationViewModel model, string returnUrl)
- {
- if (User.Identity.IsAuthenticated)
- {
- return RedirectToAction("Manage");
- }
-
- if (ModelState.IsValid)
- {
-
- var info = await AuthenticationManager.GetExternalLoginInfoAsync();
-
- if (info == null)
- {
- return View("ExternalLoginFailure");
- }
- var user = new ApplicationUser() { UserName = model.UserName };
- var result = await UserManager.CreateAsync(user);
- if (result.Succeeded)
- {
- result = await UserManager.AddLoginAsync(user.Id, info.Login);
- if (result.Succeeded)
- {
- await SignInAsync(user, isPersistent: false);
- return RedirectToLocal(returnUrl);
- }
- }
- AddErrors(result);
- }
- ViewBag.ReturnUrl = returnUrl;
- return View(model);
- }
on my methods, i have correct assemblies for both. How can i fix this issue? please help