如何启用在asp.net中的角色? [英] how to enable role in asp.net?

查看:134
本文介绍了如何启用在asp.net中的角色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使在asp.net中的角色,但我得到一些错误,并尽我所能后,我不能够让他们解决。

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.

我是新来的Visual Studio界面。我试图创建一个登录页面,ASP.NET Web应用程序。然后,我们必须配置页面连接到数据库检索用户的详细信息,我点击网站控制下的ASP.NET配置。我被带到了配置页面的三个标签。保密是,我的标签应该配置..但我不能够去通过安全标签。我收到以下错误消息。

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.

有与您选择的问题
  数据存储。这可以通过一个引起
  无效的服务器名称或凭据,或
  按权限不足。它可以
  还通过角色管理器引起
  功能未启用。点击
  下面的按钮被重定向到一个
  页面,您可以选择一个新的数据
  商店。下面的消息可能有助于
  诊断问题:无法
  连接到SQL Server数据库。

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. 在为了保持ASP.NET应用程序服务配置数据库。 你可以在这里看到如何做到这一点

  2. 编辑web.config文件。 这里
  3. 查看详情
  4. 转到ASP.NET配置工具网站控制下,并创建所需的角色。

这篇关于如何启用在asp.net中的角色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆