【发布时间】:2010-12-07 02:33:37
【问题描述】:
当我在 web.config 中有一个特定设置时,比如会话状态配置,并且我想以编程方式确定 Application_Start 的配置,我将如何处理。我正在尝试对每个环境进行稍微不同的配置。
- 我不想覆盖真正的 web.config(防止重新启动)
- 我知道Use XML includes or config references in app.config to include other config files' settings 中提出的解决方案,但我不希望将整个 system.web 部分放在一个单独的文件中,而且 system.web 没有像 appSettings 和 connectionStrings 那样实现文件属性。
有什么想法吗?
【问题讨论】:
-
你不想得到任何额外的代表点 --> 666
标签: asp.net configuration