如何回滚Asp.Net成员资格配置(表格和过程)
我正在开发一个适用于远程服务器数据库表的项目。但没有会员资格,只有一个管理面板和 1 个管理员用户。所以我尝试为此使用 Asp.Net 成员资格,但是当我根据教程(在 C:\WINDOWS\Microsoft.NET\Framework\version\aspnet_regsql.exe 上)执行此操作时,我猜想存在冲突,所以我的项目我在 web.config 中找到了“Windows 身份验证”行,将其注释掉,
然后我决定在代码中使用带有文本框的主密码。但当我打开数据库时,我意识到 Asp.Net 创建了自己的表和存储过程,现在我想回滚我的 Asp.Net(成员身份)配置。和程序,但我担心做错了什么,我该怎么办
?
I'm developing a project that works on remote server database tables. But there were no membership, only one admin panel with 1 admin user. So I tried to use Asp.Net membership for this, but when I did that according to tutorials(on C:\WINDOWS\Microsoft.NET\Framework\version\aspnet_regsql.exe"), I guess there was a conflict so my project didn't work. I found "Windows authentication" line in my web.config, commented out, fixed it.
Then I decided to use a master password inside the code, with text boxes. This is really simple application, no high-level security needed. So I did it so. But when I opened the database, I realized that Asp.Net created its own tables and stored procedures. Now I want to rollback my Asp.Net (Membership) configuration. I can manually delete the tables and procedures but I fear of doing something wrong. What should I do?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 .NET 命令提示符运行 aspnet_regsql,它将启动一个向导。您可以配置或删除表。向导为您提供了两者的选项。选择您需要的一个,您的表等将从数据库中删除...
Run aspnet_regsql from .NET command prompt and it will start a wizard. You can either configure or remove the tables.. The wizard gives you option for both.. Select the one you need and your tables etc will be deleted from the database...
如果您不使用 asp.net 会员资格,那么手动删除它们不会有什么坏处。
If you're not using asp.net membership, then it will do no harm to manually delete them.