membership.deleteuser()返回false [英] membership.deleteuser() returning false
本文介绍了membership.deleteuser()返回false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除所有表一个asp.net用户。结果
当我打电话:
I am trying to delete an asp.net user from all tables.
When I call:
bool isDeleted = Membership.DeleteUser(username, true);
请将isDeleted
被设置为false;
isDeleted
is being set to false;
有没有办法告诉为什么它不删除用户?
Is there a way to tell why it is not deleting the user?
推荐答案
我发现了另一个原因,用户无法删除:结果
它也发生,如果你改变(在aspnet_Users)的用户名
,而不是 LoweredUserName
相应。结果
至少,这是发生在我身上:结果
尽快,我也改变了 LoweredUserName
我终于可以删除用户。
I found another reason why the user could not be deleted:
it happens also if you change (in the aspnet_Users) the UserName
but not the LoweredUserName
accordingly.
At least this is what happened to me:
as soon that I changed also the LoweredUserName
I could finally delete the user.
这篇关于membership.deleteuser()返回false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文