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

Related Questions

I have a website setup in IIS with one web.config set at the root
I have set up my website to use ASP.NET Membership. it all works fine
I have an ASP.NET website set up, and I'm using Google Analytics for page
We have set up Website Payments Pro account and I managed to use ruby
as the website doesn't use SSL , I have set the slidingExpiration to false
I have a website on www.example.com and use Google Analytics. I've also set up
I'm currently use nyromodal in a website but I have some trouble to set
In IIS 5.1, i have set the website security to Basic Authentications and i
I have set up a website here: http://liamwli.co.uk/ggsim On the bottom, there are 2
I have just added a google translate in website.And set the default language English.

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.