Avatar of rpzach
rpzach
Flag for Afghanistan asked on

Your login attempt was not successful. Please try again.

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:  http://www.codeproject.com/Articles/27682/Your-Login-Attempt-was-not-Successful-Please-Try

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
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <connectionStrings>
        <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!" />
 
  </connectionStrings>
  <system.web>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
    </compilation>
    <customErrors mode="Off" />
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>
    <membership hashAlgorithmType="SHA1">
      
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" 
             type="System.Web.Security.SqlMembershipProvider" 
             connectionStringName="MembershipProvider" 
             enablePasswordRetrieval="false"
             enablePasswordReset="true" 
             requiresQuestionAndAnswer="false"
             requiresUniqueEmail="false" 
             maxInvalidPasswordAttempts="5" 
             minRequiredPasswordLength="6" 
             minRequiredNonalphanumericCharacters="0" 
             passwordAttemptWindow="10" 
             applicationName="Goldfish" />
      </providers>
    </membership>
    <profile defaultProvider="SqlProvider">
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="MembershipProvider" applicationName="Goldfish" />
      </providers>
      <properties>
        <add name="FirstName" />
        <add name="LastName" />
        <add name="Birthday" />
      </properties>
    </profile>
    <roleManager enabled="true">
      <providers>
        <clear />
        <add connectionStringName="MembershipProvider" applicationName="Goldfish" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
       
      </providers>
    </roleManager>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <directoryBrowse enabled="false" />
    <defaultDocument>
      <files>
        <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" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>

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!!
ASP.NET.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
rpzach

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Nasir Razzaq

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rpzach

ASKER
yes very much so,  not locked either
rpzach

ASKER
okay nevermind they were locked... in the eternal words of homer j: d'oheth.
Your help has saved me hundreds of hours of internet surfing.
fblack61