配置方件:
服务器配置文件 machin.config
应用程序配置文件 web.config
配置设置的应用关系是继承关系 检测配置文件的变化是自动检测 配置文件的格式是xml
连接字符串的配置有两种:一,appsettings 二,connectionsrings
配置会话状态:sessionstate mode="off" cookieless="false" timeout="10" stateconnectionstring="tcpip=localhost:42424" sqlconnectionstring="数据连接字符串"></sessionstate>
编译配置:<compilation debug="true"></compliation>
定制错误配置:<customerrors mode="remoteonle" defaultredirect="genericerrorpage.htm">
<error statuscode="403" redirect="noaccess.htm"/>
<error statusc ode="404" redirect="filenotfound.htm">
</customerrors>
本文详细介绍了 ASP.NET 中的服务器配置文件 machin.config 和应用程序配置文件 web.config 的使用方式,包括连接字符串、会话状态、编译及错误配置等关键设置。
923

被折叠的 条评论
为什么被折叠?



