ASP.net 用户管理和 GoDaddy 共享主机
我正在尝试使用内置的 asp.net (3.5) 用户管理框架,但我不是 100% 确定如何在 godaddy 上执行此操作。 谷歌没有多大帮助,有人有这方面的经验吗?
I'm trying to use the asp.net (3.5) built in user management framework but I'm not 100% sure how to do this on godaddy. Google didn't help much, anyone have experience with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以自己制作或寻找一个。 您无法直接针对您的 GoDaddy 帐户运行 Asp.net 配置工具。 (如果您注意到的话,它只是通过 Visual Studio 在另一个开发 Web 服务器上运行的另一个 asp.net 网站)。
您可以使用 Membership Provider 中的 System.Web.Security.Membership 和 Roles 静态类来挂钩它。 这很容易做到。 Membership.GetUsers() 等。
您还可以使用存储过程手动添加/删除用户和角色。
-内森
You can roll your own or find one. You cannot run the Asp.net configuration tool directly against your GoDaddy account. (If you notice, it's just another asp.net website runing in another dev web server via Visual Studio).
You can use the System.Web.Security.Membership and Roles static classes in the Membership Provider to hook into it. This is very easy to do. Membership.GetUsers(), etc.
You can also use the stored procs to manually add/remove users and roles.
-Nathan
前往您的主机控制中心
在顶部的菜单内容中,转到 IIS 管理,
将会有网络文件夹列表,
在列表顶部,您可以看到 asp.net 运行时版本和(修改)括号中的链接,单击它。 在那里您将看到您是否使用的是 asp.net 3.5。
Go to your hosting control center
in menu Content on top, go to IIS Management,
there will be list of web folder,
on top of the list you can see asp.net runtime versions and (modify) link in brackets, click on it. There you'll see if you are using asp.net 3.5.
我也遇到过这个问题。 大约一年前。 所以我很想知道解决方案可能是什么(如果有的话)! 当时,GoDaddy 告诉我,他们将 ASP.net 管理内容“锁定”得相当严密。 我与他们的帮助人员来回交流,他们实际上必须将问题升级 - 因为一般帮助团队不明白我在问什么。 我最终所做的是取消了我的托管服务(他们确实给了我未使用时间的退款!),然后我转到了另一个主机。 希望这会有所帮助,我会仔细聆听回复,因为我很好奇它们是否发生了变化,或者是否有人有解决方法。
I have also had this problem. About a year ago. So I am curious to know what the solution might be, if there is one! I was told by Go Daddy, back then, that they had ASP.net admin stuff "locked down" pretty tight. I went back and forth with their help people, who had to actually escalate it - because the general help team didnt understand what I was asking. What I ultimately did was I canceled my hosting service (they did give me a refund for unused time!) and I went over to a different host. Hope this helps and I will be listening carefully to responses as I am curious to see if they changed OR if someone has a workaround.
要获取成员资格提供程序使用的表,请查看
%WINDIR\Microsoft.NET\Framework\v2.0.50727
。 这是向导使用的 SQL 语句所在的位置。 另外,请查看:http://www.asp.net/Learn/Security/tutorial- 04-vb.aspx
更全面地解释如何设置成员资格表。 您可以完成管理工具所做的所有相同工作,只是不是以 GUI 格式进行。
To get the tables that the membership provider uses, look in
%WINDIR\Microsoft.NET\Framework\v2.0.50727
. That is where the SQL statements used by the wizard are located. Also, check out:http://www.asp.net/Learn/Security/tutorial-04-vb.aspx
for a more thorough explaination of how memberships tables are set up. You can do all the same work that the admin tool does, just not in a GUI format.