Problems in login

Discussion in 'ASP.NET / ASP.NET Core' started by elmcherqui, Oct 4, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. hi ,
    first i want to apologize for my bad english it's my third language .

    here is my problem :
    i'm using the default WebForm asp:Login

    i have created sqlserver2008R2 database , update it with aspnet_regsql and everything .
    and used this code in web.config
    before using this name i used the local name but without any success so i tried to do everything explicitly .

    here is the concerned part of my web.config
    i have intentionnaly hided my connections's information ( i have copied and pasted the connection string from my control panel and replace the password of course )

    Code:
    <connectionStrings>
    <add name="CS_DF_Securite" connectionString="Data Source=tcp:********.discountasp.net;Initial Catalog=SQL2008R2_*******_elmcherqui;  User ID=SQL2008R2_********_elmcherqui_user;Password=*******;" providerName="System.Data.SqlClient"/>
       
    <system.web>
    <authentication mode="Forms">
           <forms loginUrl="Default.aspx" />
        </authentication>
        
        <membership defaultProvider="DF_Membership">
          <providers>
            <clear/>
            <add connectionStringName="CS_DF_Securite"
            name="DF_Membership"
            type="System.Web.Security.SqlMembershipProvider"/>
          </providers>
        </membership>
        <roleManager enabled="true" defaultProvider="DF_RoleManager">
          <providers>
            <clear/>
            <add connectionStringName="CS_DF_Securite"
            name="DF_RoleManager"
            type="System.Web.Security.SqlRoleProvider"/>
          </providers>
        </roleManager>
    
      </connectionStrings>
    </system.web>
    
    and my asp code : ( with <form .... )
    Code:
    <asp:Login ID="Login1" runat="server"  
                onauthenticate="Login1_Authenticate">
            </asp:Login>
    
    finally my code behind :
    Code:
      protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
        {
           
            if (Membership.ValidateUser(Login1.UserName, Login1.Password))
            {
                Response.Redirect("http://www.elmcherqui.com/Reserve.aspx/Reserve.aspx");
            }
            else
            {
                Response.Write("[DEBUG] wrong informations");
            }
            
        }
    
    and i used the Asp.net wizard to configure everything .
    and everything works on my local server as i expect.

    and when i send my website + my database and attache it . it seems that my login component is not connected when i click on log in it refreshes the page and it shows no error.

    i'm really desperate , i have spent many long hours trying to fix the problem but it was no use .


    additional informations maybe important : i'm using telerik Rad controls , but the projects works locally so it's not that .

    i really need your help , thank's in advance , have a nice day ( or night) .
     
  2. after very very very long hours of searching it seems that's Telerik's problem .

    i saw theses lines :
    Code:
    <modules runAllManagedModulesForAllRequests="true">
    			<remove name="RadUploadModule"/>
    			<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
    			<remove name="RadCompression"/>
    			<add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
    		</modules>
       
    
    So i desactivate it ( i comment it ) and it works . but how can i make them run and it the same time my login form run as well .

    thank you , have a nice day .
     
  3. mjp

    mjp

    Glad you found the problem.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page