|
-
December 8th, 2009, 11:57 PM
#1
Another newb with some quick Error
Try
Dim authTicket As FormsAuthenticationTicket = _
FormsAuthentication.Decrypt(authCookie.Value)
Dim roles = authTicket.UserData
Dim userIdentity As GenericIdentity = _
New GenericIdentity(authTicket.Name)
Dim userPrincipal As GenericPrincipal = _
New GenericPrincipal(userIdentity, roles)
Context.User = userPrincipal
Catch ex As Exception
End Try
Error 1 Value of type 'String' cannot be converted to '1-dimensional array of String'. C:\xxx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|