Application-Specific Configuration

The .NET Framework permits configuration of application-specific parameters using an optional XML format file with a .config extension. 
apmdevops106
The .NET Framework permits configuration of application-specific parameters using an optional XML format file with a
.config
extension. 
Add Properties for Configuration
For ASP.NET applications, web.config is the main file for application-specific settings and configuration. This file is stored in the application root directory.
For other .NET executables, the configuration file is named the same as the application appended with a .config extension. The file is stored in the same directory as the application executable. For example, for testapp.exe, the optional configuration file would be testapp.exe.config.
You can add Introscope-specific configurations to the .config file. For example, you can set parameters that enable individual applications to reference their own instance of the IntroscopeAgent.profile file. This configuration permits different applications to have different agent configurations. The configuration also enables cross-process transaction correlation for web services.
Configuration files are not required for .NET agent installation.
We recommend that you use the full path to access the agent profile.
Follow these steps:
  1. Open the application configuration file.
  2. Add a 
    sectionGroup
    and 
    section
    to your application configuration file as shown:
    <configuration>
       <configSections>
          <sectionGroup>
             <sectionGroup name="com.wily.introscope.agent">
             <section name="env.parameters"type="System.Configuration.NameValueSectionHandler" />
          </sectionGroup>
  3. Add new properties to the
    env.parameters
    section. For example:
    <com.wily.introscope.agent>
       <env.parameters>
          <add key="com.wily.introscope.agentProfile" value="e:\\junkyard\\dotnettest\\Agent.profile" />
       </env.parameters>
    </com.wily.introscope.agent>
    For an example, see
    <Agent_Home>/sample.exe.config
    .