ASP.NET 2.0 会员数据库?

发布于 2024-07-07 01:00:29 字数 485 浏览 7 评论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

绳情 2024-07-14 01:00:29

密码是用机器密钥 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.

梦旅人picnic 2024-07-14 01:00:29

不看就很难说,但我会首先检查 web.config 中的连接字符串。

Its hard to say without looking but I'd check your connection strings in your web.config first.

花开柳相依 2024-07-14 01:00:29

我已经检查了 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

失眠症患者 2024-07-14 01:00:29

您好,我在 web.config 中看不到机器密钥变量我已检查该部分,发现两个环境 web.config 文件使用相同的公钥令牌

            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        </assemblies>
        <buildProviders>
            <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
        </buildProviders>

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

            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        </assemblies>
        <buildProviders>
            <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
        </buildProviders>

挖个坑埋了你 2024-07-14 01:00:29

您可以检查您的用户凭据。 拥有数据库备份并不意味着您拥有所有用户信息。 (例如服务器范围的用户/角色)。

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).

坏尐絯 2024-07-14 01:00:29

使用您以前的数据库表值插入表 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文