将 asp.net 会员数据库转换为 Sql Server Compact 4.0
我有一个 Asp.Net MVC 3 网站,它使用 asp.net 会员服务进行身份验证。成员数据库一直在 Sql Server Express 2008 上运行,我正在尝试将其转换为 Sql Sever Compact 4.0。
按照此处的说明进行操作已创建 Sql Server Compact 4.0 数据库。我使用此处中的代码在 MVC 应用程序中切换成员资格提供程序。
使用新的提供程序和数据库,我能够成功创建新用户并使用新用户的密码登录。但是,我无法登录 Sql Server Express 数据库中以前存在的任何用户。我能够浏览新数据库并验证用户都在那里,所以我相信问题在某种程度上与无法成功访问之前创建的加密密码有关。我真的不想让所有现有用户更改密码。谁能告诉我如何实现这一目标?
I have an Asp.Net MVC 3 website that uses asp.net membership services for authentication. The membership database has been running on Sql Server Express 2008 and I am attempting to convert it to Sql Sever Compact 4.0.
Following the instructions here I have created the Sql Server Compact 4.0 database. I used the code from here to switch the membership provider in the MVC app.
Using the new provider and database I am able to successfully create new users and log in using the new user's password. However, I am not able to login to any of the users that previously existed in the Sql Server Express database. I am able to browse the new database and have verified that the users are all there, so I believe the problem is somehow related to not being able to successfully access the encrypted passwords that had been previously created. I really don't want to have all of the existing users change their passwords. Can anyone shed some light as to how I can make this happen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是否可能与 web.config 文件中的 ApplicationName 属性有关?
有关更多信息,请参阅 ScottGu 的这篇博文:
Is it possible it has something to do with the ApplicationName property in the web.config file?
See this blog post from ScottGu for more information: