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

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.

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



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


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

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

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 ,
KothaSanjay 13-Aug-12 3:22am    

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

1 solution

Add this
<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