Unable to configure membership login on the host server for asp.net

Discussion in 'ASP.NET / ASP.NET Core' started by Sushil, Dec 24, 2012.

  1. I am not able to configure the membership login on the host server of discountasp.net. The site works fine for membership on the local laptop. Please suggest solution. The error message is 26

    Following is the config file
    <?xml version="1.0"?>

    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    -->

    <configuration>
    <connectionStrings>
    <remove name="ApplicationServices"/>
    <add name="LocalSqlServer"
    connectionString="Data Source=sql2k805.discountasp.net;Initial Catalog=SQL2008R2_847757_astro7db;Persist Security Info=True;User ID=SQL2008R2_847757_astro7db_user;Password=*******; AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
    providerName="System.Data.SqlClient" />
    </connectionStrings>

    <system.web>
    <authorization>
    <deny users="?" />
    <allow roles="admin" />
    </authorization>
    <compilation debug="false" targetFramework="4.0" />

    <authentication mode="Forms">
    <forms loginUrl="~/Account/Login.aspx" timeout="5000" />
    </authentication>

    <membership>
    <providers>
    <clear/>
    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer"
    enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
    maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
    applicationName="/" />
    </providers>
    </membership>

    <profile>
    <providers>
    <clear/>
    <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/"/>
    </providers>
    </profile>

    <roleManager enabled="true">
    <providers>
    <clear />
    <add connectionStringName="LocalSqlServer" applicationName="/"
    name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
    <add applicationName="/" name="AspNetWindowsTokenRoleProvider"
    type="System.Web.Security.WindowsTokenRoleProvider" />
    </providers>
    </roleManager>

    </system.web>

    <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    </system.webServer>
    </configuration>
    ed.
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

Share This Page