Login Form Issue

Discussion in 'ASP.NET 2.0' started by Dan Nguyen, Jan 16, 2007.

  1. Hello,


    I have problems when upload my website to discountasp.net server. I combine website database and ASPNETDB database as instructions from this site http://aspnet.4guysfromrolla.com/articles/040506-1.aspx. The Login form is working well in my local server (Below is part of my web.config file.)


    However, it's not working in discountasp server. When I try to use login form, it's hang and never response. You can view my test site at www.nailsvl.com and try to create a new user. (IT's working well on my local)


    Thanks for your help


    Dan


    P. S i see that someone has the same problems with mine. I hope we can solve this issue.





    <connectionStrings>


    <remove name="ShopConnection" />


    <add name="ShopConnection" connectionString="Data Source=sql2k506.discountasp.net;Initial Catalog=SQL2005_316054_beautyshop;User ID=SQL2005_316054_beautyshop_user;Password=******;" providerName="System.Data.SqlClient" />


    </connectionStrings>





    <membership>


    <providers>


    <remove name="AspNetSqlMembershipProvider" />


    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"


    connectionStringName="ShopConnection"


    enablePasswordRetrieval="false" enablePasswordReset="true"


    requiresQuestionAndAnswer="true" applicationName="/"


    requiresUniqueEmail="false" passwordFormat="Hashed"


    maxInvalidPasswordAttempts="5" passwordAttemptWindow="10"


    minRequiredPasswordLength="6"


    minRequiredNonalphanumericCharacters="0"


    passwordStrengthRegularExpression="" />


    </providers>


    </membership>





    <authentication mode="Forms">


    <forms name="ShopLogin"


    loginUrl="Login.aspx" path="/" protection="All" timeout="60">


    </forms>


    </authentication>
     
  2. I see a custom error page when I try to create a login.Try and set <customErrors mode="Off"/> so that we know whats causing the exception.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Thanks for a quick response, I just set


    customErrors mode="Off"
    Please let me know if you need anything else. Thanks
     
  4. Add this to your web.config's <connectionStrings>to overwrite machine.config settings for LocalSqlServer

    <remove name="LocalSqlServer" />


    <add name="LocalSqlServer" connectionString="Data Source=sql2k506.discountasp.net;Integrated Security=False;Initial Catalog=SQL2005_316054_beautyshop;User ID=SQL2005_316054_beautyshop_user;Password=XXXXXX" providerName="System.Data.SqlClient" />

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. WOWWWWWWWWWWWWWWW


    IT's working.............Thank you very much!


    I have spent two days for this problem.........now it's working.[​IMG]
     

Share This Page