Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 985
  • Last Modified:

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!!
0
rpzach
Asked:
rpzach
  • 2
1 Solution
 
CodeCruiserCommented:
And obviously the user you are trying to login as already exists in database?
0
 
rpzachAuthor Commented:
yes very much so,  not locked either
0
 
rpzachAuthor Commented:
okay nevermind they were locked... in the eternal words of homer j: d'oheth.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now