Web.config a Chinese explanation

Source: Internet
Author: User
web| Chinese <?xml version= "1.0" encoding= "Utf-8"?>
<configuration>

<system.web>

<!--dynamic Debug compilation
Set compilation debug= "True" to debug symbols (. PDB information)
Insert into the compilation page. Because this will create the execution
A slower large file, you should set the value to true only when debugging, and all other times set to
False For more information, please refer to the
Debug the document for the ASP.net file.
-->
<compilation defaultlanguage= "VB" debug= "true"/>

<!--custom error messages
Set CustomErrors mode= "on" or "RemoteOnly" to enable custom error messages, or set to off to disable custom error messages.
Add <error> tag for each error that you want to handle.
-->
<customerrors mode= "RemoteOnly"/>

<!--authentication
This section sets the authentication policy for the application. The possible pattern is \ "Windows\",
\ "Forms\", \ "passport\" and "none\"
-->
<authentication mode= "Windows"/>


<!--authorization
This section sets the authorization policy for the application. Can allow or deny user or role access
Application resources. Wildcard: "*" means any person, "?" means anonymity
(unauthorized) user.
-->
<authorization>
<allow users= "*"/> <!--allow all users-->

<!--<allow users= "[Comma separated list of users]"
roles= "[comma-separated role list]"/>
<deny users= "[Comma separated list of users]"
roles= "[comma-separated role list]"/>
-->
</authorization>

<!--application-level trace records
Application-level tracking enables trace log output for each page within the application.
Set trace Enabled= "True" to enable application trace logging. If pageoutput= "true", the
The trace information is displayed at the bottom of each page. Otherwise, you can pass from the WEB application
Root browses the "Trace.axd" page to view
Application trace log.
-->
<trace enabled= "false" requestlimit= "ten" pageoutput= "false" tracemode= "SortByTime" localonly= "true"/>


<!--session state settings
By default, ASP.net uses cookies to identify which requests belong to a specific session.
If the cookie is not available, you can track the session by adding the session identifier to the URL.
To disable cookies, set sessionstate cookieless= "true".
-->
<sessionstate
Mode= "InProc"
Stateconnectionstring= "tcpip=127.0.0.1:42424"
sqlconnectionstring= "Data Source=127.0.0.1;user id=sa;password="
Cookieless= "false"
Timeout= "20"
/>

<!--globalization
This section sets the globalization settings for the application.
-->
<globalization requestencoding= "Utf-8" responseencoding= "Utf-8"/>

</system.web>

</configuration>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.