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.
You might want to review this Knowledge Base article: http://support.discountasp.net/KB/a337/how-to-configure-aspnet-membershiproles-provider-to.aspx You might also want to remove this from your connection string:
What's the error message you're getting on your web forms? I suspect it may have something to do with the LocalSqlServer connection string name. You may also want to look at this knowledge base article as well... http://support.discountasp.net/KB/a828/parser-error-message-connection-name-localsqlserver.aspx