Re: Role Provider Security Trimming Issue



I should practice what I preach.

I had allow users = "*" above deny users="?"

So my roles were never being set for the user.

Removed allow users="*" and it works fine...


On Sep 12, 4:58 pm, tim.cav...@xxxxxxxxx wrote:
I have set up my project to use Security Trimming by editing my
web.config file.

I added the securityTrimmingEnabled = "True"

I added <roleManager enabled="true" />

In my Site map provider .vb file, I override the IsAccessibleToUser
function to query a database to get application specific roles. I then
loop through the node.Roles looking for a match in the user roles. I
then return true or false to enable the menu item to appear.

This all works great when I run the application from Visual Studio.
I'm able to see the Administration section.

However, if I go tohttp://localhost/mysitedirectly, I do not see the
Administration link.

Can anyone provide any insight as to why I can only see it when
debugging in Visual Studio?

Tim


.



Relevant Pages

  • Re: Delphi Win32 alongside Delphi for .Net.
    ... I'm being forced over on Visual Studio .Net by my ... It was common practice for press gangs to ... I do think that the Delphi user population is being reduced by this practice ... OTOH some folks, who have moved out of the neighborhood, like to come back ...
    (borland.public.delphi.non-technical)
  • Re: A library for Visual studio 2005 not compatible.
    ... and absolutly not with Visual Studio 2005, the link is not performed and ... with VS2005 to be consistent. ... This is usually a good practice and you ... should avoid mixing various run times. ...
    (microsoft.public.vc.mfc)