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 9185283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:14:36+00:00 2026-06-17T19:14:36+00:00

I am developing an ASP .Net website. I have declared a custom MembershipProvider in

  • 0

I am developing an ASP .Net website.
I have declared a custom MembershipProvider in my web.config file as follows :

<membership defaultProvider="MyMembershipProvider">
    <providers>
        <clear/>
        <add name="MyMembershipProvider" type="CompleteSubtitles.Web.Security.MembershipProvider"/>
    </providers>
</membership>

I have created a login ASPX page.
I call the MembershipProvider.ValidateUser method in the validate button click event handler.
I have noticed that the MembershipProvider.Initialize method is not executed automatically by ASP .Net.
Is it normal ?

The MembershipProvider.Initialize method is necessary to load the MembershipProvider’s configuration.

  • 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-06-17T19:14:37+00:00Added an answer on June 17, 2026 at 7:14 pm

    I have got the solution after reading LordHits’s answer on this thread : How do I call Initialize on a custom MembershipProvider?

    I badly instanciated my MembershipProvider as follows :

        CompleteSubtitles.Web.Security.MembershipProvider l_membershipProvider = 
            new CompleteSubtitles.Web.Security.MembershipProvider();
    

    The correct way is :

        CompleteSubtitles.Web.Security.MembershipProvider l_membershipProvider =
            (CompleteSubtitles.Web.Security.MembershipProvider)Membership.Providers["MyMembershipProvider"];
    

    The MembershipProvider.Initialize method is executed when using the correct way.
    The MembershipProvider configuration is consequently read from the web.config file.

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

Sidebar

Related Questions

I have an asp.net c# website I'm developing with Visual Web Developer Express Edition
i have a problem i am developing an asp.net mvc project. Website is in
I am developing a website in asp.net and have this problem: string price =
TGIF, I have a website I'm developing which is using ASP.NET masterpage/sitemap/content pages setup.
I'm developing a website (using asp.net-mvc) with a SqlServer 2005 database. I have numerous
I am developing a website in asp.net, I have used jquery image slider and
I'm developing ASP.NET 4.0 Website using SQL server 2008 with Membership Framework. It runs
I am developing an ASP.NET 2.0 website. I have created data access and business
I'm developing a website ( ASP.NET Webform with C#) where I have a <button>
I've started developing a website in ASP.NET MVC and have taken part in the

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.