I am actually a little confussed by this issue. The code I have is from the "Secure my Site using Membership and Roles?" video on this site. Where I am adding a new user and supplying the member with a role.
I used this code in a couple of programs before with no problems. Now I get this error message that points to this line of code
Public Sub DeactiveStep(ByVal sender As Object, ByVal e As System.EventArgs)
Roles.AddUsersToRole(User.Identity.Name, lstRole.SelectedValue)
End Sub
The error is "Value of type 'String' cannot be converted to '1-dimensional array of String'". Everything is the exact same from the other two programs, word for word, cut and paste pretty much. However, I cannot get this code to work now.
Any idea of what it could be?
...
Go to the complete details ...