K
Keith G Hicks
asp.net 2.0 (ms sql 2005)
Worked in development but not on production site. I'm testing roles in a
couple of pages:
if My.User.IsInRole("adminstrators") then
'do stuff or not
endif
Like I said, this all works fine in development.
When I run it on the remote server I can log in and it finds the user and
the login process seems fine but it cannot see the role for some reason.
I put this in the Page_Load event of my default page:
Response.Write("name: " & My.User.Name)
Response.Write("; role: " & String.Join(",",
Roles.GetRolesForUser(My.User.Name)))
the Role comes up blank (in production version)
Can anyone tell me what might be wrong?
Thanks,
Keith
Worked in development but not on production site. I'm testing roles in a
couple of pages:
if My.User.IsInRole("adminstrators") then
'do stuff or not
endif
Like I said, this all works fine in development.
When I run it on the remote server I can log in and it finds the user and
the login process seems fine but it cannot see the role for some reason.
I put this in the Page_Load event of my default page:
Response.Write("name: " & My.User.Name)
Response.Write("; role: " & String.Join(",",
Roles.GetRolesForUser(My.User.Name)))
the Role comes up blank (in production version)
Can anyone tell me what might be wrong?
Thanks,
Keith