ASP NET Identity Manager database permissions

蓝咒 提交于 2019-12-24 11:28:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!