如何从桌面应用程序在会员服务中设置用户
这很奇怪,但我们已经编写了一个 asp.Net Web 应用程序(一切都很好),但现在我们正在导入大量数据,在本例中是具有现有用户名和密码的用户。导入是通过桌面应用程序完成的。
我需要从旧系统中获取每个用户,并在新系统中创建一个相应的用户,为此,我需要将每个用户添加到 asp.net 会员服务中。
我完全不知道如何从桌面上做到这一点。我的意思是,我已经引用了 System.Web.Security,但是我会在 App.config 中放入什么内容?
抱歉,我认为我对会员服务的理解还不够好,无法很好地表达这个问题。但有人可以指出我正确的方向吗?
This is odd, but we have written an asp.Net web application (all's well there) but now we are importing a large amount of data, and in this case, users with existing usernames and passwords. The import is being done with a desktop application.
I need to take each user from the old system, and create a corresponding user in the new system, and to do that I need to add each of them to asp.net membership services.
I'm at a complete loss as to how I can do this from the desktop. I mean, I've got references to System.Web.Security, but what would I put in my App.config?
I'm sorry, I don't think I fully understand Membership Services enough to phrase this question all that well. But can someone point me in the right direction please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该检查以下 SO 线程以获取更多信息:
您可以在 Windows 应用程序中使用 asp.net 成员资格提供程序吗?
在 winforms 应用程序中使用 ASP.NET 成员资格提供程序是一个坏主意吗?
You should check following SO threads for more information :
Can you use the asp.net membership provider in a windows application?
Is using the ASP.NET Membership providers in winforms application a bad idea?