ASP.NET 2.0 会员数据库?
我有一个应用程序数据库和一个 aspnetdb 数据库(从 ASP.Net 2.0 框架生成)。 我已将两个数据库从生产环境恢复到我的开发环境中,但无法使用任何适用于生产环境的用户凭据登录。
所以我的问题是,是否有任何东西可以将 ASP>NET 2.0 Framework 生成的 aspnetdb 数据库绑定到特定机器?
如果有人成功地将 aspnetdb 数据库从一台计算机恢复到另一台计算机,请他们阐明需要相同的变量才能访问所有以前的用户。
非常感谢!
当然,我已经检查了连接字符串并仔细检查了用户和角色,我可以通过能够在开发环境上创建新用户并使用这些凭据登录来确认它们正在工作。
问题是我无法使用我在实时环境中使用的任何用户凭据登录。 我觉得这与两台机器上machine.config文件的差异有关。 如果有人知道我应该在 machine.config 中查找的变量,那么我可以确保它们在两个环境(即两台机器)中相同。
I have an application database and an aspnetdb database (generated from the ASP.Net 2.0 framework). I have restored both database from production onto my development environment but I am unable to log on with any of the users credentials that work on production.
So my question is is there anything that ties the aspnetdb database generated by ASP>NET 2.0 Framework to a specific machine?
If anyone has ever restored an aspnetdb database from one machine to another successfully please can they shed light on the variables that need to be the same in order to access all the previous users.
Many Thanks!
Sure I have checked the connection string and double checked users and roles which I can confirm is working by being able to create new users on the development environment and log in with those credentials.
The problem is I am unable to logon with any of the user credentials I use on the live environment. This I feel is related to the difference in the machine.config files on both machines. If anyone knows a variable I should look for in the machine.config then I could make sure they are the same in both environments i.e both machines.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
密码是用机器密钥 AFAIK 加密的。 因此,您需要在所有要测试的地方保持相同。 据我所知,机器密钥可以在web.config中设置。
The passwords are encrypted with a machine key AFAIK. So you needs to be the same on all places you will be testing this. From what I know, the machine key can set in the web.config.
不看就很难说,但我会首先检查 web.config 中的连接字符串。
Its hard to say without looking but I'd check your connection strings in your web.config first.
我已经检查了 web.config 和连接字符串以及成员资格部分,具体按照下面的 Scott Gus 博客链接检查了应用程序名称:
http://weblogs.asp.net/scottgu/archive/2006/04/22/443634.aspx
I have checked the web.config and connection string and the membership section specifcally the application name as per Scott Gus blog link below:
http://weblogs.asp.net/scottgu/archive/2006/04/22/443634.aspx
您好,我在 web.config 中看不到机器密钥变量我已检查该部分,发现两个环境 web.config 文件使用相同的公钥令牌
Hi I can't see a machine key variable in the web.config I have checked the section and found that both environments web.config files use the same public key token
您可以检查您的用户凭据。 拥有数据库备份并不意味着您拥有所有用户信息。 (例如服务器范围的用户/角色)。
you could check your user credentials. having a backup of the database does not mean you have all the user information. (e.g. server wide users/roles).
使用您以前的数据库表值插入表 aspnet_membership 和 aspnet_users ,其中您已加密密码并且您知道加密的真实值,并且使用用户名和密码您可以登录系统,之后您可以更改密码。我有之前有同样的问题,我是这样解决的。
谢谢
insert on table aspnet_membership and aspnet_users using your previous database table value, where you have encrypted password and you know the real value of that encrypted and using the user name and password you can login the system after that you can change you password.I had the same problem before and i solved like this.
Thanks