This error appears after adding new role or edit existing role name?
To ADD NEW ROLE in e-learning web application, run the following query to your project’s database:
insert into AspNetRoles (Id , Name) values (newid(), 'NewRoleName’);
Remember to change the ‘NewRoleName’ to a role name that you want
To EDIT Existing Role Name, do the following steps:
Run this query: select * from aspnetroles
Copy the id of the role name that you want to modify
Run this quey:
update aspnetroles set Name = ‘RoleNewName’ where Id = ‘PasteIdThatCopiedInStep2’
Remember to change the ‘RoleNewName’ to a role name that you want
Remember to edit the name also in the code, see the picture below: