Search

You searched for the word(s): userid:785144

Matching Posts

  • Re: User.isInrole problem

    Try checking role with domain prefix, ex: User.IsInRole(@"domain\user"). If that fails try this code: string [] members = Roles.GetRolesForUser(); foreach ( string role in members) { Response.Write( "\n" + role + "/<br />" ); } ... and dont forget enable roleManager in web.config: < system.web > < roleManager enabled= "true" defaultProvider= "AspNetWindowsTokenRoleProvider" /> </ systen.web >
    Posted to Security (Forum) by MarcinM on 2/11/2008
  • ASP.NET impersonation - getfiles() problem

    Hi all, I've got problem with listing files in UNC path. Result is: Access to the path '\\serwername\path' is denied. I'm using IIS 5.1 on WinXP Pro. All machines in one domain. Impersonation is on. web.config: < system.web > < identity impersonate= "true" /> < authentication mode= "Windows" /> </ system.web > Integrated Windows authentication checked and Anonymous access unchecked in IIS configuration. I've been googling on this one
    Posted to Security (Forum) by MarcinM on 2/11/2008
    Filed under: ASP.NET 2.0, c# in Asp.net, GetFiles(), Impersonatenation
Page 1 of 1 (3 items)