Web.config 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <system.web>
  4. <!--clientTarget>
  5. <add alias="ie5" userAgent="Unknown" />
  6. </clientTarget-->
  7. <!-- DYNAMIC DEBUG COMPILATION
  8. Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to
  9. false will improve runtime performance of this application.
  10. Set compilation debug="true" to insert debugging symbols (.pdb information)
  11. into the compiled page. Because this creates a larger file that executes
  12. more slowly, you should set this value to true only when debugging and to
  13. false at all other times. For more information, refer to the documentation about
  14. debugging ASP.NET files.
  15. -->
  16. <compilation defaultLanguage="c#" debug="true" />
  17. <!-- CUSTOM ERROR MESSAGES
  18. Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
  19. Add <error> tags for each of the errors you want to handle.
  20. "On" Always display custom (friendly) messages.
  21. "Off" Always display detailed ASP.NET error information.
  22. "RemoteOnly" Display custom (friendly) messages only to users not running
  23. on the local Web server. This setting is recommended for security purposes, so
  24. that you do not display application detail information to remote clients.
  25. -->
  26. <!-- customErrors mode="RemoteOnly" /-->
  27. <!-- AUTHENTICATION
  28. This section sets the authentication policies of the application. Possible modes are "Windows",
  29. "Forms", "Passport" and "None"
  30. "None" No authentication is performed.
  31. "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to
  32. its settings for the application. Anonymous access must be disabled in IIS.
  33. "Forms" You provide a custom form (Web page) for users to enter their credentials, and then
  34. you authenticate them in your application. A user credential token is stored in a cookie.
  35. "Passport" Authentication is performed via a centralized authentication service provided
  36. by Microsoft that offers a single logon and core profile services for member sites.
  37. -->
  38. <authentication mode="None" />
  39. <!-- AUTHORIZATION
  40. This section sets the authorization policies of the application. You can allow or deny access
  41. to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
  42. (unauthenticated) users.
  43. -->
  44. <authorization>
  45. <allow users="*" />
  46. <!-- Allow all users -->
  47. <!-- <allow users="[comma separated list of users]"
  48. roles="[comma separated list of roles]"/>
  49. <deny users="[comma separated list of users]"
  50. roles="[comma separated list of roles]"/>
  51. -->
  52. </authorization>
  53. <!-- APPLICATION-LEVEL TRACE LOGGING
  54. Application-level tracing enables trace log output for every page within an application.
  55. Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
  56. trace information will be displayed at the bottom of each page. Otherwise, you can view the
  57. application trace log by browsing the "trace.axd" page from your web application
  58. root.
  59. -->
  60. <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
  61. <!-- SESSION STATE SETTINGS
  62. By default ASP.NET uses cookies to identify which requests belong to a particular session.
  63. If cookies are not available, a session can be tracked by adding a session identifier to the URL.
  64. To disable cookies, set sessionState cookieless="true".
  65. -->
  66. <!-- sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" /-->
  67. <!-- GLOBALIZATION
  68. This section sets the globalization settings of the application.
  69. -->
  70. <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
  71. </system.web>
  72. </configuration>