Copy codeThe Code is as follows:
<? Xml version = "1.0"?>
<! --
Note: In addition to manually editing this file, you can also use
Web management tools to configure application settings. You can use
"Website"-> "Asp. Net configuration" option.
The complete list of settings and comments is displayed in
In machine. config. comments, this file is usually located in
\ Windows \ Microsoft. Net \ Framework \ v2.x \ Config
-->
<Configuration>
<Deleetask>
<Add key = "accessCon" value = "Provider = Microsoft. Jet. OLEDB.4.0;
Data Source = | DataDirectory | db_access.mdb "/> <! -- Accesscon database connection -->
<Add key = "sqlCon" value = "Data Source = (local); Database = Northwind; Uid = sa; Pwd ="/> <! -- Sqlserver database connection -->
</AppSettings>
<ConnectionStrings/>
<System. web>
<! --
Set compilation debug = "true" to insert the debugging symbol
Compiled pages. However, this
Performance is affected, so this value is only available during development.
Set to true.
-->
<Compilation debug = "true"/>
<! --
In the <authentication> section, you can configure
Security Authentication mode,
To identify the user.
-->
<Authentication mode = "Windows"/>
<SessionState mode = "InProc" timeout = "10"> </sessionState> <! -- Session expiration time -->
<HttpRuntime maxRequestLength = "4096" executionTimeout = "100"/> <! -- File upload size limit and timeout -->
<! --
If an unprocessed error occurs during request execution,
You can configure the corresponding processing steps in the <mermerrors> section. Specifically,
This section allows developers to configure
Html error page to be displayed
To replace the error stack trace.
<CustomErrors mode = "RemoteOnly" defaultRedirect = "GenericErrorPage.htm">
<Error statusCode = "403" redirect = "NoAccess.htm"/>
<Error statusCode = "404" redirect = "FileNotFound.htm"/>
</CustomErrors>
-->
</System. web>
</Configuration>