[Last Call] Learn how to a build a cloud-first strategyRegister Now


Authentication & Role Provider in Active Directory

Posted on 2011-05-06
Medium Priority
Last Modified: 2012-05-11
I have facing a problem when i am trying to login my AD user on Blog in my web application. an abstract overview of the system is that i have a web app , users of app are authenticated through active directory , when i integrate dotnetBlogEngine in my app i need to authenticate the users of that blog according to the user roles in active directory. But i have an error when i tried to debug my app on following lines of web.config.
<roleManager defaultProvider="ADRoleProvider" enabled="true" cacheRolesInCookie="true" cookieName=".BLOGENGINEROLES">
    <add name="ADRoleProvider" type="System.Web.Security.AuthorizationStoreRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" connectionUsername="UserName" connectionPassword="******" attributeMapUsername="sAMAccountName" />

 I need to solve this issue. Hope i can find a good solution here.. Regards
Question by:Arslan306
LVL 41

Accepted Solution

graye earned 2000 total points
ID: 35720500
This appears to be related to the partial trust conditions for IIS and ASP.Net.

When using an Active Directory or ADAM server, the ASP.NET application needs unmanaged-code permission because the internal AuthorizationStoreRoleProvider object code uses COM interop.

LVL 53

Expert Comment

ID: 35910113
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
Starting up a Project
Screencast - Getting to Know the Pipeline

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question