Here's one of those things I do just infrequently enough to forget a step. Now I just need to remember that I've put all the steps here.
<configuration> <connectionStrings> <add name="SqlMembershipConnection" connectionString="Data Source=IPADDRESS;Initial Catalog=DBNAMEHERE;User ID=DBUSERNAMEHERE;Password=PASSWORDHERE" /> </connectionStrings><configuration>
<membership> <providers> <clear/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="SqlMembershipConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" applicationName="NAMEOFAPPHERE"/> </providers></membership>
NOTE: The connectionStringName parameter of the membership provider must match the name you chose for the connection string above. The applicationName parameter allows you to use the same database for different web applications. Choose a suitable name and set the other parameters as needed.
All code examples are presented "as is", and the user assumes all responsibility for use. The opinions expressed in this site are mine and do not reflect those of my employer.