Membership provider won't let me login when uploaded

Discussion in 'ASP.NET / ASP.NET Core' started by TimCadieux, Aug 24, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I've developed an application using the Membership provider. I've been able to log in and out for weeks on my local machine without issue.

    I uploaded my site and I know the connstring works fine because my TreeView control is already populated with links from my Db.

    The problem is i Cannot login to the site. The Control always returns my attempts with Your login attempt was not successful. Please try again.

    Here's my Web.Config.
    Code:
    	<connectionStrings>
        <clear/>
        <remove name="LocalSqlServer"/>
        <add name="LocalSqlServer" connectionString="Data Source=tcp:esql2k801.discountasp.net;Initial Catalog=SQL2008_575858_mllp;User ID=SQL2008_575858_mllp_user;Password=******;" providerName="System.Data.SqlClient"/>
    		<!--<add name="DatabaseConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=c:\acoImagery_Css\App_Data\acoimagery.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>-->
        <remove name="DatabaseConnectionString1"/>
        <add name="DatabaseConnectionString1" connectionString="Data Source=tcp:esql2k801.discountasp.net;Initial Catalog=SQL2008_575858_mllp;User ID=SQL2008_575858_mllp_user;Password=******;" providerName="System.Data.SqlClient" />
    	</connectionStrings>
    	<system.web>
    		<authorization>
    			<allow users="?"/>
    		</authorization>
    		<roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
    			<providers>
    				<add name="CustomizedRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="DatabaseConnectionString1"/>
    			</providers>
    		</roleManager>
    		<membership defaultProvider="CustomizedMembershipProvider">
    			<providers>
    				<add name="CustomizedMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="DatabaseConnectionString1"/>
    			</providers>
    		</membership>
    
    
     
  2. Bruce

    Bruce DiscountASP.NET Staff

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