I have created an ASP.NET MVC 5 project. In one of the controllers I am using,
[Authorize(Roles = "Admin")]
for accessing the Index action, which should Authorize only the members of Admin role to access it. However, when I run my application I get the error message,
Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'
At this point I should mention that I have created an Admin user who is member of Admin role. Also, when I run my application with
[Authorize(Users = "Admin")]
it works fine, but this is not what I want. I am currently using VS 2013 and my database is localDB.
Can anyone help with this issue?