Hi All
I have built a routine for our testing group that adds up to 5,000 sample users to an ASP membership site, however I cannot seem to add users to roles in the routine. When I type in "Roles", Intellisense does not show "AddUserToRoles". The associated error says "AddUserToRoles is not a member of MyApp.Roles".
Here is the code snippet of interest:
For Each row In RandomNamesdt.Rows
Dim fname = row(0).ToString
Dim lname = row(1).ToString
Dim UserName = row(3).ToString
Dim email = row(3).ToString & "@myemail.com"
Dim FullName = lname & ", " & fname
Dim expression = "UserName = '" & UserName & "'"
Dim foundrows() As DataRow = CurrentUsersdt.Select(expression)
If (foundrows.Length < 1) Then
newrows = newrows + 1
Membership.CreateUser(UserName, "123456", email)
...
Go to the complete details ...