Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6704049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:14:37+00:00 2026-05-26T07:14:37+00:00

I wanted to create a custom membership provider for my asp.net mvc application, but

  • 0

I wanted to create a custom membership provider for my asp.net mvc application, but the number of parameters in default CreateUser() method is not what I want. Because my User table is different, i want to pass my own parameters. Here is the code I used for UserCreate() Method :

public override MembershipUser CreateUser(string username,string family,string personcode, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
    {
        //
    }

and here the the error i got :

Error 2 MyMemberShipProvider.CreateUser(string, string, string, string, string, string, string, bool, object, out System.Web.Security.MembershipCreateStatus)’: no suitable method found to override

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:14:38+00:00Added an answer on May 26, 2026 at 7:14 am

    A good approach is to use both the Membership Provider and the Profile provider.

    The Membership provider will manage the creation of users, password validation, keeping track of who and when logs in to your app, etc.

    The Profile provider allows you to manage multiple attributes for the user.

    So, you will need to do the following:

    1. Implement your own Membership provider.
      See msdn.microsoft.com/en-us/library/f1kyba5e.aspx or msdn.microsoft.com/en-us/library/44w5aswa.aspx

    2. Implement your Profile provider (or use an existing one).
      See here msdn.microsoft.com/en-us/library/0580x1f5.aspx or msdn.microsoft.com/en-us/library/ta63b872.aspx

    3. Implement a ProfileCommon class defining the attributes you want to use for your users.
      Your Profile provider should know how to handle the ProfileCommon class.

    For a ProfileCommon example I implemented the following for my custom MongoDB ASPNet Providers: github.com/agarcian/MongoDBASPNetProviders/blob/master/ASPNETProvidersForMongoDB/ProfileCommon.cs

    1. Configure the WebConfig sections to define your custom implementations.
      (See sample below)

    The next examples are part of custom Membership, Role, and Profile providers I developed for MongoDB.
    See https://github.com/agarcian/MongoDBASPNetProviders

    Here is the configuration I use in my apps to utilize my custom membership provider.

    <membership defaultProvider="MongoDBProvider" userIsOnlineTimeWindow="15">
      <providers>
        <clear />
        <add
          name="MongoDBProvider"
          type="ASPNetProvidersForMongoDB.MongoDBMembershipProvider, ASPNetProvidersForMongoDB"
          connectionStringName="MongoProvidersDBConnStr"
          enablePasswordRetrieval="true"
          enablePasswordReset="true"
          requiresQuestionAndAnswer="false"
          writeExceptionsToEventLog="true"
          mongoProviderDatabaseName ="aspnetproviderdb"
          mongoProviderUsersCollectionName="Users"
          applicationName="WebUI4"
          />
    
    
    
      </providers>
    </membership>
    
    <roleManager defaultProvider="MongoDBProvider" enabled="true">
      <providers>
        <clear />
        <add applicationName="WebUI4"
            name="MongoDBProvider"
             type="ASPNetProvidersForMongoDB.MongoDBRolesProvider, ASPNetProvidersForMongoDB"
            connectionStringName="MongoProvidersDBConnStr"
             writeExceptionsToEventLog="true"
          mongoProviderDatabaseName ="aspnetproviderdb"
          mongoProviderUsersCollectionName="Roles"
             />
      </providers>
    </roleManager>
    
    <profile defaultProvider="MongoDBProvider" inherits="MyCompany.Security.Profile.ProfileCommon">
      <providers>
        <add
          applicationName="WebUI4"
          name="MongoDBProvider"
          type="ASPNetProvidersForMongoDB.MongoDBProfileProvider, ASPNetProvidersForMongoDB"
          connectionStringName="MongoProvidersDBConnStr"
          writeExceptionsToEventLog="true"
          mongoProviderDatabaseName ="aspnetproviderdb"
          mongoProviderUsersCollectionName="Profiles" />
      </providers>
    </profile>
    

    I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an Asp.Net MVC4 site and I wanted to create a membership
I've always wanted to create custom components in Java, or customize existing ones, but
I wanted to create custom controller method argument annotation. Following this question How to
I'm currently creating some custom helper classes, similar to ASP.NET MVC's standard HtmlHelper .
I am using Asp.Net Mvc Web api RC. I wanted to hide the fields/properties
I am trying to figure out how to use/create a custom control in ASP.NET
I'm currently writing a custom server control in ASP.net. My idea is to create
I wanted to create a very simple method that switches between views in a
I wanted to create some subdirectories inside my blob. But it is not working
I wanted to create jquery plugin & started off creating a sample jquery plugin...But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.