Posted on: 6/12/2013 5:34:21 PM | Views : 398

Hi Team,
I am working on an intranet where I implemented a custom role provider to handle all security management for our applications.  
An example would be I have 5 different web applications that reference a common DLL which has the custom role provider class.  My problem is that the ApplicationName setting in the webconfig of my web applications is not being passed in to my role provider class so I am getting inconsistent roles/users value from my provider.  

Consuming Web Application setting
<membership defaultProvider="SqlProvider"> <providers> <clear/> <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="HillsdaleFrameworkEntities" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" passwordFor ...

Go to the complete details ...