ASP.net会员和角色 [英] ASP.net Membership and Roles
问题描述
我在asp.net应用程序中使用了成员资格和角色。
步骤1: - 创建用户和密码我的数据库名称中的代码aspnetdb。
步骤2: - 表单身份验证标记和成员标记在我的web.config文件中可用。我使用了哈希我的web.config文件中的密码格式设置。
步骤3: - 成功生成用户标识和密码。我可以通过凭据登录系统。
现在我已经创建了上面创建的用户,密码和盐密码的sql脚本。在数据库aspnetdb中的另一台机器上执行脚本。记录是插入成功。但是当我尝试使用相同的凭证登录时。它不允许我登录。功能Membership.ValidateUser未验证。
请让我知道我缺少的任何内容。我正在使用Visual Studio 2012和SQL server 2008R2 />
专家请步骤...
-SR
Hi,
I have used membership and roles in asp.net application.
Step 1:- Created users and password through code in my database name "aspnetdb".
Step 2:- The forms authentication tag and membership tag is available in my web.config file.I have used the hashed format settings for password in my web.config file.
Step 3:- Successfully generates the userid and password.I am able to login in my system through the credentials.
Now I have created sql scripts of User,passwords and salt password which are above created.Execute the scripts in another machine in the database "aspnetdb".The records are inserted sucessfully.But when I am trying to login with the same credentials.It is not allowing me to login.The function "Membership.ValidateUser" is not validating.
Please let me know anything which I am missing.I am working with Visual studio 2012 and SQL server 2008R2.
Experts Please step ...
-SR
推荐答案
尝试一下这个方向。 [ ^ ]
Give this a try for some direction.[^]
>
这篇关于ASP.net会员和角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!