Prevent ASP.NET web.config inheritance, and inheritInChildApplications attribute -ASP.NET如何防止web.config向下(子应用程序)继承?
来源:互联网 发布:双色球关注数据采集 编辑:程序博客网 时间:2024/06/05 20:54
Since I've changed my top level blog engine, I've had some troubles with YAF, the forum engine I'm using for my Remote Control software.
The forum I'm using is in a child directory, which is a child application defined in IIS as an other application. The BlogEngine.NET disables the use of Sessions, and YAF requires sessions to be enabled, plus BlogEngine.NET adds some custom HTTP handlers, which incidentally are not known but the forum application. This is quite a mess, and to be able to get both applications running without fine tuning each one to work with the other, I had to use the little known attribute inheritInChildApplications.
This attribute prevents an application from passing its configuration as a default to child applications. Using this attribute is a little tricky, and has to be used this way :
<!-- Root web.config file -->
<?xml version="1.0"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.web>
<compilation debug="false" />
<!-- other configuration attributes -->
</system.web>
</location>
</configuration>
This way, any child application defined below this application will not use the current configuration. There's some mystery around the inheritInChildApplications attribute; it is not defined in the dotnetconfig.xsd file and it still is a rather helpful configuration option...
- Prevent ASP.NET web.config inheritance, and inheritInChildApplications attribute -ASP.NET如何防止web.config向下(子应用程序)继承?
- ASP.NET web.config
- ASP.NET WEB.CONFIG
- ASP.NET Web.config
- asp.net 配置文件(Machine.config、Web.config、App.config)
- ASP.NET配置文件Web.config
- ASP.NET配置文件Web.config
- ASP.NET配置文件Web.config
- ASP.NET配置文件Web.config
- ASP.NET配置文件Web.config
- asp.net修改web.config
- ASP.NET配置文件Web.config
- ASP.NET配置文件Web.config
- ASP.NET配置文件Web.config
- ASP.NET配置文件Web.config
- asp.net:web.config详解
- ASP.NET配置文件Web.config
- ASP.NET配置文件Web.config
- MySQL开发中的外键(foreign key)与参照完整性(Referential integrity)
- 用DriverStudio开发USB驱动程序[图]
- 将DataTable中满足条件的记录输入到另一个DataTable
- Eclipse快捷键大全(转载)
- 提高PHP编程效率的53个要点
- Prevent ASP.NET web.config inheritance, and inheritInChildApplications attribute -ASP.NET如何防止web.config向下(子应用程序)继承?
- Android学习1——SDK文档阅读
- Java从入门到精通 - 数据库操作-PrepareStatementTest
- SQL Server2005中得到所有表的字段及其他信息
- office11 的引用被指向了 office12
- 在tomcat中实现https安全连接的方法
- sql常用语句
- jsp格式date类型
- ALERT: java/lang/ClassFormatError: Bad version information.