开发者

user is being created with Membership.CreateUser and when I pass the line it is being automatically deleted from table

I'm trying to create a user using Membership.CreateUser. After I pass the following line: MembershipUser newUser = Membership.CreateUser(_UserName, _Password, _User开发者_运维问答Name);

I check the 'aspnet_Membership' table and I find out that the user is indeed created. At that point I stop the application and I check the table again. Mysteriously the user that has just been created is dissapeared.

Does anyone understands what's going on?

Thanks a lot, Assaf.


Quick guess, but it sounds like an error is occuring and a transaction rollback is occurring.

Check for a MembershipCreateUserException

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜