Default ASP.NET web.config


/ Published in: XML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4. For more information on how to configure your ASP.NET application, please visit
  5. http://go.microsoft.com/fwlink/?LinkId=169433
  6. -->
  7.  
  8. <configuration>
  9. <connectionStrings>
  10. <add name="ApplicationServices"
  11. connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
  12. providerName="System.Data.SqlClient" />
  13. </connectionStrings>
  14.  
  15. <system.web>
  16. <compilation debug="true" targetFramework="4.0" />
  17.  
  18. <authentication mode="Forms">
  19. <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
  20. </authentication>
  21.  
  22. <membership>
  23. <providers>
  24. <clear/>
  25. <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
  26. enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
  27. maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
  28. applicationName="/" />
  29. </providers>
  30. </membership>
  31.  
  32. <profile>
  33. <providers>
  34. <clear/>
  35. <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
  36. </providers>
  37. </profile>
  38.  
  39. <roleManager enabled="false">
  40. <providers>
  41. <clear/>
  42. <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
  43. <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
  44. </providers>
  45. </roleManager>
  46.  
  47. </system.web>
  48.  
  49. <system.webServer>
  50. <modules runAllManagedModulesForAllRequests="true"/>
  51. </system.webServer>
  52. </configuration>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.