If you would like a version in plain text format, copy to clipboard or print. Then feel free to use this syntaxHighlighter version
1<?xml version="1.0" encoding="UTF-8"?> 2<configuration> 3 <connectionStrings> 4 <remove name="LocalSqlServer" /> 5 <!--You add your connectionstring here--> 6 <!--Use something like this for a database in App_data folder--> 7 <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI; 8AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/> 9 <!--Use something like this for a Local sql server 10 <add name="LocalSqlServer" connectionString="server=machinename\SQLEXPRESS; 11initial catalog=databasename;uid=username;Pwd=password" providerName="System.Data.SqlClient"/> --> 12<!--For more info on connectionStrings take a look at http://www.connectionstrings.com --> 13</connectionStrings> 14 <system.web> 15<!--set if you are using roles--> 16 <roleManager> 17 <providers> 18 <add name="AspNetSqlRoleProvider" 19 connectionStringName="LocalSqlServer" 20 applicationName="/" 21 type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, 22 Culture=neutral, 23 PublicKeyToken=b03f5f7f11d50a3a"/> 24 </providers> 25 </roleManager> 26 <authentication mode="Forms"> 27 <forms timeout="50000000"/> 28 <!--More info at http://weblogs.asp.net/scottgu/archive/2005/11/08/430011.aspx --> 29 </authentication> 30<!--set if you are using membership--> 31<!-- You should ALWAYS customize the Membership provider and specify an applicationName... See 32http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_ 33-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx 34for more details... --> 35 <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15"> 36 <providers> 37 <clear/> 38 <add name="AspNetSqlMembershipProvider" 39 type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0,40 Culture=neutral, 41 PublicKeyToken=b03f5f7f11d50a3a" 42 connectionStringName="LocalSqlServer" 43 enablePasswordRetrieval="false" 44 enablePasswordReset="true" 45 requiresQuestionAndAnswer="true" 46 applicationName="/" 47 requiresUniqueEmail="false" 48 passwordFormat="Hashed" 49 maxInvalidPasswordAttempts="5" 50 minRequiredPasswordLength="7" 51 minRequiredNonalphanumericCharacters="1" 52 passwordAttemptWindow="10" 53 passwordStrengthRegularExpression="" /> 54 </providers> 55 </membership> 56</system.web> 57</configuration>
Copyright © 2010 Jasminedesign York England. All Rights Reserved
Interested? email or use our Contact Page to get started.
Website Terms of Use - Privacy Policy
Top of Page