1

I have a custom database schema that I want to use for the Custom Membership Provider.

Can anyone give a step by step procedure to do so because when I tried to create a class library project and extended my CustomProvider there was no MembershipProvider, just the SqlMembershipProvider and the ActiveDirectoryMembershipProvider, even with all the references attached.

Please help me guys with it.

Piyush
  • 886
  • 3
  • 9
  • 28
  • Did you using System.Web.Security. See this for more comprehensive http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx information – Subhash Dike Apr 12 '11 at 05:25

2 Answers2

2

The custom membership provider creation is explained in this video by chris pels. Hope this helps.

suhair
  • 10,895
  • 11
  • 52
  • 63
  • I have gone through the video but the problem is that I cannot extend the `MembershipProvider` abstract class and nor able to `Implement Abstract Class` – Piyush Apr 12 '11 at 04:53
  • Did you add reference to System.Web dll and added the using statements ? This is the class you need to reference http://msdn.microsoft.com/en-US/library/system.web.security.membershipprovider.aspx – suhair Apr 12 '11 at 04:55
  • yeah I added those references. `System.Web` and `System.Configuration` – Piyush Apr 12 '11 at 04:58
  • 1
    Hi you need to reference System.Web.ApplicationServices dll too. – suhair Apr 12 '11 at 05:07
1

In .net4 it seems to have been put into the System.Web.ApplicationServices dll even though the namespace is System.Web.Security while the SqlMembershipProvider still sits in System.Web.Security.

namespace System.Web.Security
    Member of System.Web.ApplicationServices

public class SqlMembershipProvider : System.Web.Security.MembershipProvider
    Member of System.Web.Security
JTew
  • 3,149
  • 3
  • 31
  • 39