Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Asp Mvc 5 user registration fails

Asp Mvc 5 user registration fails

Scheduled Pinned Locked Moved ASP.NET
asp-netarchitecturehelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AnCristina
    wrote on last edited by
    #1

    Hello , I am trying to make a custom login page . On adding the password to AspNetUsers I get the following error : Cannot insert explicit value for identity column in table 'AspNetUsers' when IDENTITY_INSERT is set to OFF. Source Error: Line 86: Line 87: var user = new ApplicationUser() { UserName = model.UserName }; Line 88: var result = await UserManager.CreateAsync(user, model.Password); Line 89: ApplicationUser appusr = new ApplicationUser(); Line 90: IdentityUserRole idnt = new IdentityUserRole(); Is there any way to solve this without changing the identity column . The default field is Id nvarchar(128) .

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups