Click here to Skip to main content
15,913,408 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I am currently working on custome form based authentication
i have created two classes UserCredentials and UserRole and these two classes link with my DataAccess.dbml. User table and Role master is defined in this class

I have added the following code to web.cofig file.

XML
<authentication mode="Forms">
    <forms loginUrl="UI/Login/Login.aspx" defaultUrl="Home.aspx">

    </forms>

  </authentication>

  <authorization>
    <allow roles="Admin" />
    <deny users="*" />
    <allow roles="Admin" />
  </authorization>
  <membership defaultProvider="UserCredentials" >
    <providers>
      <clear/>
      <add name="UserCredentials"  type="UserCredentials"/>

    </providers>
  </membership>

  <roleManager defaultProvider="UserRole"  >
    <providers >
      <clear/>
      <add name="UserRole" type="UserRole"/>
    </providers>
  </roleManager>



when i am trying to define the security rules from asp.net website admin tool iam getting the below error..

"
SQL
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Could not load type 'CustomMember'. (C:\Sanjay\test1\test1\web.config line 64)

"


I am desperately waiting for the solution..


Thank you ,
Posted
Comments
KothaSanjay 13-Aug-12 3:22am    
@Prabhakar,

Ive tried this , but getting the same error again !!

1 solution

Add this
C#
<rolemanager enabled="true"></rolemanager>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900