Groups | Blog | Home
all groups > asp.net security > august 2006 >

asp.net security : membership/roles create user problem


John
8/28/2006 10:26:27 PM
Hi

I have a web service asmx file in a sub folders of site app root folder.
With in the web service I am trying to cerate the user as below;

<WebMethod()> _
Public Function CreateUser(ByVal Username As String, ByVal Password As
String, ByVal Email As String, ByRef ErrMsg As String) As Boolean

Dim newUser As MembershipUser = Membership.CreateUser(Username, Password,
Email, passwordQuestion, passwordAnswer, True, status)
If (newUser Is Nothing) Then
ErrMsg = GetErrorMessage(status)
CreateUser = False
true
CreateUser = True
End If
End Function

The user seems to be created fine but it does not appear in the Web Site
Administration Tool list of users. When I look in the aspnet db, the user is
created in the vw_aspnet_Users table but not in any of the rest of the
tables such as vw_aspnet_MembershipUsers.

What is wrong and how can it be fixed?

Thanks

Regards

John
8/28/2006 11:50:27 PM
I think I have cracked this one.

Thanks

Regards

[quoted text, click to view]

AddThis Social Bookmark Button