Web.config 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0"?>
  2. <!--
  3. For more information on how to configure your ASP.NET application, please visit
  4. http://go.microsoft.com/fwlink/?LinkId=152368
  5. -->
  6. <configuration>
  7. <connectionStrings>
  8. <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
  9. </connectionStrings>
  10. <appSettings>
  11. <add key="webpages:Version" value="1.0.0.0"/>
  12. <add key="ClientValidationEnabled" value="true"/>
  13. <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
  14. </appSettings>
  15. <!--
  16. For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
  17. The following attributes can be set on the <httpRuntime> tag.
  18. <system.Web>
  19. <httpRuntime targetFramework="4.5" />
  20. </system.Web>
  21. -->
  22. <system.web>
  23. <compilation debug="true" targetFramework="4.5">
  24. <assemblies>
  25. <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  26. <add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  27. <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  28. <add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  29. <add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  30. </assemblies>
  31. </compilation>
  32. <authentication mode="Forms">
  33. <forms loginUrl="~/Account/LogOn" timeout="2880"/>
  34. </authentication>
  35. <membership>
  36. <providers>
  37. <clear/>
  38. <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
  39. </providers>
  40. </membership>
  41. <profile>
  42. <providers>
  43. <clear/>
  44. <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
  45. </providers>
  46. </profile>
  47. <roleManager enabled="false">
  48. <providers>
  49. <clear/>
  50. <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
  51. <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
  52. </providers>
  53. </roleManager>
  54. <pages controlRenderingCompatibilityVersion="4.0">
  55. <namespaces>
  56. <add namespace="System.Web.Helpers"/>
  57. <add namespace="System.Web.Mvc"/>
  58. <add namespace="System.Web.Mvc.Ajax"/>
  59. <add namespace="System.Web.Mvc.Html"/>
  60. <add namespace="System.Web.Routing"/>
  61. <add namespace="System.Web.WebPages"/>
  62. </namespaces>
  63. </pages>
  64. </system.web>
  65. <system.webServer>
  66. <validation validateIntegratedModeConfiguration="false"/>
  67. <modules runAllManagedModulesForAllRequests="true"/>
  68. </system.webServer>
  69. <runtime>
  70. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  71. <dependentAssembly>
  72. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  73. <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0"/>
  74. </dependentAssembly>
  75. </assemblyBinding>
  76. </runtime>
  77. </configuration>