Embedded statement cannot be a declaration or labeled statement

后端 未结 2 771
悲哀的现实
悲哀的现实 2020-12-05 09:25

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         


        
2条回答
  •  -上瘾入骨i
    2020-12-05 10:01

    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.

提交回复
热议问题