Your login attempt was not successful. Please try again.

Posted on 2012-03-15
Last Modified: 2012-06-27
I'm trying to put an app on the web and I'm having some trouble with the login control.  Everytime I try to log in I get this error:  Your login attempt was not successful. Please try again.

I've gone through this entire site:

and i applied all the tricks and it still isnt working.  I think I may have boffed something up in the web.config.  Here is my web.config:  

<?xml version="1.0" encoding="UTF-8"?>
  For more information on how to configure your ASP.NET application, please visit
        <remove name="LocalMySqlServer" />
    <remove name="LocalSqlServer" />
    <add name="MembershipProvider" connectionString="Data Source=SERVER1\SQLEXPRESS;Initial Catalog=aquarium;Persist Security Info=True;User ID=user;Password=!password!" />
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
        <add assembly="System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    <customErrors mode="Off" />
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    <membership hashAlgorithmType="SHA1">
        <clear />
        <add name="AspNetSqlMembershipProvider" 
             applicationName="Goldfish" />
    <profile defaultProvider="SqlProvider">
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="MembershipProvider" applicationName="Goldfish" />
        <add name="FirstName" />
        <add name="LastName" />
        <add name="Birthday" />
    <roleManager enabled="true">
        <clear />
        <add connectionStringName="MembershipProvider" applicationName="Goldfish" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
    <modules runAllManagedModulesForAllRequests="true" />
    <directoryBrowse enabled="false" />
        <clear />
        <add value="Default.htm" />
        <add value="Default.asp" />
        <add value="index.htm" />
        <add value="index.html" />
        <add value="iisstart.htm" />
        <add value="default.aspx" />
        <add value="index.php" />

Open in new window

I also added a gridview to test the permissions to the membership tables and my user can access each...

Any ideas?  This is starting to drive me mad and as always thanks for all the help experts!!
Question by:rpzach
  • 2
LVL 83

Accepted Solution

CodeCruiser earned 500 total points
ID: 37726132
And obviously the user you are trying to login as already exists in database?

Author Comment

ID: 37726202
yes very much so,  not locked either

Author Comment

ID: 37726234
okay nevermind they were locked... in the eternal words of homer j: d'oheth.

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
help with regular expression to search string 6 24 and sql server 4 35
JSON  parse help 7 25
Function after success of Jquery/AJAX action 9 11
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question