Getting access denied error when querying for user Roles using Authorization Role Manager

Recently I was working on an AuthorizationRoleProvider issue for an ASP.Net application. Customer was using Authorization Role Manager for the Role management of the Active Directory users. Scenario ======= You developed an Asp.net application using Authorization Role provider. We logged in as User1 into the application through Forms authentication. We used the following code: string…