Your login attempt was not successful. Please try again. EVERY DAMN TIME! Help

Discussion in 'ASP.NET 2.0' started by rrkky, Jan 13, 2007.

  1. OK, Never thought development would drive me to tears, but this girl has had it!</o:p>
    </o:p>
    </o:p>
    I have been trying to troubleshoot an ASP.NET login issue <u1:personName u2:st="on"><st1:personName w:st="on">for</u1:personName> the past 5 days and I am desperate <u1:personName u2:st="on"><st1:personName w:st="on">for</u1:personName> assistance. I have posted on the database <st1:personName w:st="on">forumn and contacted support and I am no closer to fixing this than I was on Monday.</o:p>
    </o:p>
    My website is yellowbrickroadtech.com </o:p>
    </o:p>
    I built the site using Visual web developer express. I have since installed SQL 2005 developer edition and Visual Studio 2005.</o:p>
    </o:p>
    I am using a SLQ 2005 server at my host site discountasp</o:p>
    </o:p>
    When I create usesrs roles etc, they show up in remote datebase at discount asp. So everything there appears to be working. My only purpose <u1:personName u2:st="on"><st1:personName w:st="on">for</u1:personName> the database is to have users authenticate to access a secured folder and files.</o:p>
    </o:p>
    When my users who have valid accounts created login I get ?</o:p>




    Your login attempt was not successful. Please try again.</o:p>
    This of course tells me <u1:personName u2:st="on"><st1:personName w:st="on">for</u1:personName> some reason the the database is not being queried. I have seen post on the asp.net site of others with this issue, but again no resolution. I need to get this fixed ASAP. PLEASE someone has to know what is going on.</o:p>
    </o:p>
    Below is my web.config </o:p>
    </o:p>
    </o:p>
    </o:p>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"></o:p>
    </o:p>
    <connectionStrings></o:p>
    <remove name="LocalSqlServer" /></o:p>
    <add name="LocalSqlServer" connectionString="Data Source=tcp:sql2k505.discountasp.net;Integrated Security=false;Initial Catalog=SQL2005_294046_ybr;User ID=SQL2005_294046_ybr_user;Password=(my password is here)" providerName="System.Data.SqlClient"/></o:p>
    </connectionStrings></o:p>
    </o:p>
    </o:p>
    </o:p>
    <system.web></o:p>
    <authentication mode="Forms"></o:p>
    <<u1:personName u2:st="on"><st1:personName w:st="on">for</u1:personName>ms loginUrl="login.aspx" protection="Validation" timeout="300" /></o:p>
    </authentication></o:p>
    </o:p>
    <roleManager enabled="true" /> </o:p>
    <compilation debug="true" strict="false" explicit="true"></o:p>
    <assemblies></o:p>
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></o:p>
    <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></o:p>
    <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></o:p>
    <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></o:p>
    </assemblies></o:p>
    </compilation></o:p>
    <pages></o:p>
    <namespaces></o:p>
    <clear/></o:p>
    <add namespace="System"/></o:p>
    <add namespace="System.Collections"/></o:p>
    <add namespace="System.Collections.Specialized"/></o:p>
    <add namespace="System.Configuration"/></o:p>
    <add namespace="System.Text"/></o:p>
    <add namespace="System.Text.RegularExpressions"/></o:p>
    <add namespace="System.Web"/></o:p>
    <add namespace="System.Web.Caching"/></o:p>
    <add namespace="System.Web.SessionState"/></o:p>
    <add namespace="System.Web.Security"/></o:p>
    <add namespace="System.Web.Profile"/></o:p>
    <add namespace="System.Web.UI"/></o:p>
    <add namespace="System.Web.UI.WebControls"/></o:p>
    <add namespace="System.Web.UI.WebControls.WebParts"/></o:p>
    <add namespace="System.Web.UI.HtmlControls"/></o:p>
    </namespaces></o:p>
    </pages></o:p>
    </system.web></o:p>
    </o:p>
    </o:p>
    <appSettings/> </o:p>
    <system.net></o:p>
    <mailSettings></o:p>
    <smtp from=""></o:p>
    <network host="localhost" password="(my password is here)" userName="yellowbric1" /></o:p>
    </smtp></o:p>
    </mailSettings></o:p>
    </system.net></o:p>
    </configuration></o:p>
    </o:p>
     
  2. Add the following to your web.config

    <system.web>
    <membership defaultProvider='MySqlMembershipProvider'>
    <providers>
    <add connectionStringName='LocalSqlServer' name='MySqlMembershipProvider' type='System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' />
    </providers>
    </membership>
    </system.web>

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page