I am trying to create a user using claim identity asp.net I get this error while creating claims identity user.
ApplicationUser user = new ApplicationUser
I just had this error, and the fix was to add a curly brace to the if immediately preceding my code, and then remove it again. Visual Studio facepalm OTD.