can't see role in production version
- From: "Keith G Hicks" <krh@xxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 11:34:20 -0500
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
.
- Follow-Ups:
- Re: can't see role in production version
- From: Keith G Hicks
- Re: can't see role in production version
- Prev by Date: Re: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection
- Next by Date: Re: can't see role in production version
- Previous by thread: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection
- Next by thread: Re: can't see role in production version
- Index(es):