Author: imperialx | Posted on: 12/28/2009 10:59:59 AM | Views : 496

Hello,
Why I can't add a role to a user, I am getting this error "'Value of type 'System.Web.Security.MembershipUser' cannot be converted to '1-dimensional array of String'."

Dim UName As MembershipUser
        UName = Membership.GetUser()
        Roles.AddUsersToRole(UName, "Administrator")

I also have the same error when manually using the username such as,
        Roles.AddUsersToRole("Bob", "Administrator")





-imperialx

...

Go to the complete details ...