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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:16:39+00:00 2026-05-10T14:16:39+00:00

I set up a website to use SqlMembershipProvider as written on this page .

  • 0

I set up a website to use SqlMembershipProvider as written on this page.

I followed every step. I have the database, I modified the Web.config to use this provider, with the correct connection string, and the authentication mode is set to Forms. Created some users to test with.

I created a Login.aspx and put the Login control on it. Everything works fine until the point that a user can log in.

I call Default.aspx, it gets redirected to Login.aspx, I enter the user and the correct password. No error message, nothing seems to be wrong, but I see again the Login form, to enter the user’s login information. However if I check the cookies in the browser, I can see that the cookie with the specified name exists.

I already tried to handle the events by myself and check, what is happening in them, but no success.

I’m using VS2008, Website in filesystem, SQL Express 2005 to store aspnetdb, no role management, tested with K-Meleon, IE7.0 and Chrome.

Any ideas?

Resolution: After some mailing with Rob we have the ideal solution, which is now the accepted answer.

  • 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. 2026-05-10T14:16:40+00:00Added an answer on May 10, 2026 at 2:16 pm

    I have checked the code over in the files you have sent me (thanks again for sending them through).

    Note: I have not tested this since I have not installed the database etc..

    However, I am pretty sure this is the issue.

    You need to set the MembershipProvider Property for your ASP.NET controls. Making the definitions for them:

    <asp:Login ID="Login1" runat="server"      MembershipProvider="MySqlMembershipProvider">     <LayoutTemplate>         <!-- template code snipped for brevity -->     </LayoutTemplate> </asp:Login> 

    And..

    <asp:CreateUserWizard ID="CreateUserWizard1" runat="server"      MembershipProvider="MySqlMembershipProvider">         <WizardSteps>             <asp:CreateUserWizardStep runat="server" />             <asp:CompleteWizardStep runat="server" />         </WizardSteps>     </asp:CreateUserWizard> 

    This then binds the controls to the Membership Provider with the given name (which you have specified in the Web.Config.

    Give this a whirl in your solution and let me know how you get on. I hope this works for you 🙂

    Edit

    I should also add, I know you shouldn’t need to do this as the default provider is set, but I have had problems in the past with this.. I ended up setting them all to manual and all worked fine.

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

Sidebar

Ask A Question

Stats

  • Questions 251k
  • Answers 251k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Well, you can query the UIDevice for @property UIDeviceOrientation orientation,… May 13, 2026 at 9:34 am
  • Editorial Team
    Editorial Team added an answer routes.MapRoute( "RouteName", // Route name "{controller}/{action}.aspx", // URL with parameters… May 13, 2026 at 9:34 am
  • Editorial Team
    Editorial Team added an answer Those classes are in the Android Open Source Project (AOSP)… May 13, 2026 at 9:34 am

Related Questions

Are there any simple diagnostics I can run to determine why authentication is not
I have a requirement to have a website running as a service account for
I develop a network based, multi-component software system that's designed to run on an
I'm making a website in c# .NET and using the windows live id web

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.