01.
<
system.web
>
02.
<
httpHandlers
>
03.
<
add
verb
=
"*"
path
=
"*.aspx"
04.
type
=
"URLRewriter.RewriterFactoryHandler, URLRewriter"
/>
05.
<
add
verb
=
"*"
path
=
"*.shtml"
06.
type
=
"URLRewriter.RewriterFactoryHandler, URLRewriter"
/>
07.
<
add
verb
=
"*"
path
=
"*.bobo"
08.
type
=
"URLRewriter.RewriterFactoryHandler, URLRewriter"
/>
09.
10.
</
httpHandlers
>
11.
12.
<
caching
>
13.
<
sqlCacheDependency
enabled
=
"true"
pollTime
=
"6000"
>
14.
<
databases
>
15.
<
add
name
=
"YD_JWC_JAKE"
connectionStringName
=
"cachestr"
/>
16.
</
databases
>
17.
</
sqlCacheDependency
>
18.
</
caching
>
19.
<!--
20.
设置 compilation debug="true" 将调试符号插入
21.
已<
SPAN
class
=
t_tag
onclick
=
tagshow
(event)
href
=
"tag.php?name=%B1%E0%D2%EB"
>编译</
SPAN
>的<
SPAN
class
=
t_tag
onclick
=
tagshow
(event)
href
=
"tag.php?name=%D2%B3%C3%E6"
>页面</
SPAN
>中。但由于这会
22.
影响性能,因此只在<
SPAN
class
=
t_tag
onclick
=
tagshow
(event)
href
=
"tag.php?name=%BF%AA%B7%A2"
>开发</
SPAN
>过程中将此值
23.
设置为 true。
24.
-->
25.
<
compilation
debug
=
"true"
>
26.
<
assemblies
>
27.
<
add
assembly
=
"System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
28.
</
assemblies
>
29.
</
compilation
>
30.
<!--
31.
通过 <
authentication
> 节可以配置 <
SPAN
class
=
t_tag
onclick
=
tagshow
(event)
href
=
"tag.php?name=ASP"
>ASP</
SPAN
>.<
SPAN
class
=
t_tag
onclick
=
tagshow
(event)
href
=
"tag.php?name=NET"
>NET</
SPAN
> 使用的
32.
安全身份验证<
SPAN
class
=
t_tag
onclick
=
tagshow
(event)
href
=
"tag.php?name=%C4%A3%CA%BD"
>模式</
SPAN
>,
33.
以标识传入的<
SPAN
class
=
t_tag
onclick
=
tagshow
(event)
href
=
"tag.php?name=%D3%C3%BB%A7"
>用户</
SPAN
>。
34.
-->
35.
<
authentication
mode
=
"Forms"
>
36.
<
forms
loginUrl
=
"login.aspx"
name
=
".AJSUPCXAIUTH"
></
forms
>
37.
</
authentication
>
38.
<
authorization
>
39.
<
allow
users
=
"*"
/>
40.
</
authorization
>
41.
<!--
42.
如果在执行请求的过程中出现未处理的错误,
43.
则通过 <
customErrors
> 节可以配置相应的处理步骤。具体说来,
44.
开发人员通过该节可以配置
45.
要显示的 html 错误页
46.
以代替错误堆栈跟踪。-->
47.
<
customErrors
mode
=
"RemoteOnly"
defaultRedirect
=
"/ER3.shtml"
>
48.
<
error
statusCode
=
"403"
redirect
=
"/ER1.shtml"
/>
49.
<
error
statusCode
=
"404"
redirect
=
"/ER404.shtml"
/>
50.
</
customErrors
>
51.
</
system.web
>