how to enable role in asp.net?

谁都会走 提交于 2019-12-20 02:13:38

问题


i am trying to enable roles in asp.net but,i am getting few errors and after trying my best i am not able to get them resolved.

I am new to visual studio interface. I tried creating a login page as ASP.NET web application. Then as we have to configure the page to connect to the database to retrieve user details, i clicked on the ASP.NET configuration under Website control.. I was taken to the configuration page with three tabs.. Security was the tab that i was supposed to configure.. But i am not able to go through to the security tab. I get the following error message.

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem: Unable to connect to SQL Server database.

I also clicked on the button to select a new data store, but there was only one default data store available.

i enabled my role manager tag to true,but again i am facing the same problem

Any process to configure the security tab would be helpful.


回答1:


Use steps below:

  1. Configure your database in order to maintain ASP.NET Application Services. You can see here how to do it
  2. Edit your web.config file. See details here
  3. Go to ASP.NET Configuration Tool under Website control and create required roles.


来源:https://stackoverflow.com/questions/5949460/how-to-enable-role-in-asp-net

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