对于 ASP.NET 应用程序,web.config 是特定于应用程序的设置和配置的主文件。 此文件存储在应用程序根目录中。
对于其他 .NET 可执行文件,配置文件的命名方式与应用程序相同,并附加一个 .config 扩展名。 该文件与应用程序可执行文件存储在同一个目录中。 例如,对于 testapp.exe,可选的配置文件为 testapp.exe.config。
可以将特定于 Introscope 的配置添加到 .config 文件。 例如,通过设置参数,使各个应用程序可以引用各自的 IntroscopeAgent.profile 文件实例(允许不同的应用程序具有不同的代理配置),还可以为 Web 服务启用跨进程事务关联。
请执行以下步骤:
<configuration>
<configSections>
<sectionGroup>
<sectionGroup name="com.wily.introscope.agent">
<section name="env.parameters"type="System.Configuration.NameValueSectionHandler" />
</sectionGroup>
<com.wily.introscope.agent>
<env.parameters>
<add key="com.wily.introscope.agentProfile" value="e:\\junkyard\\dotnettest\\Agent.profile" />
</env.parameters>
</com.wily.introscope.agent>
有关示例,请参阅 sample.exe.config。
注意:安装 .NET 代理不需要配置文件。
|
版权所有 © 2013 CA。
保留所有权利。
|
|