问题
I have got Identity Manager set up and running locally, working with ASP.NET Identity. I have a SQL Server 2012 database for the backend. I can create a user and get a list back, however whenever I try and create a role, edit a user or list the roles i get the following:
CREATE DATABASE permission denied in database 'master'.
The user i have in the connection string is a valid SQL login and is a user on the database that Identity Manager is pointed at, (and obviously can login as i can see the user in the database table) however it seems like for these actions the database is claiming the user connecting hasn't got permission.
I am running the app pool for identity manager under the AppPoolIdentity.
Appreciate any help.
回答1:
So issues were due to first of all me not passing my context to the role store (i was passing it to my user store however) and then making sure the identity manager service was getting my role manager. After i went through all the dependencies carefully i got it all working with no issues.
来源:https://stackoverflow.com/questions/30400093/asp-net-identity-manager-database-permissions