Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create documentation about using ApplicationHost.config to configure per-app pool environment variables #1010

Open
JcolemanNR opened this issue Mar 7, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation intern

Comments

@JcolemanNR
Copy link
Contributor

JcolemanNR commented Mar 7, 2022

Feature Description

It is possible to add per-app pool environment variables by modifying:
C:\Windows\System32\inetsrv\config\ApplicationHost.config

There is no internal or customer-facing documentation about how to do this, but it would be valuable for customers and developers to know about as an option to enable/disable the .NET agent, and agent options.

Example:

<applicationPools>
    <add name="DefaultAppPool" />
    <add name="Classic .NET AppPool" managedRuntimeVersion="v2.0" managedPipelineMode="Classic" />
    <add name=".NET v2.0 Classic" managedRuntimeVersion="v2.0" managedPipelineMode="Classic" />
    <add name=".NET v2.0" managedRuntimeVersion="v2.0" />
    <add name=".NET v4.5 Classic" managedRuntimeVersion="v4.0" managedPipelineMode="Classic" />
    <add name=".NET v4.5" managedRuntimeVersion="v4.0" />
    <add name="TestApplication" autoStart="true" managedRuntimeVersion="v4.0">
        <environmentVariables>
            <add name="COR_ENABLE_PROFILING" value="1" />
            <add name="NEW_RELIC_LICENSE_KEY" value="xxxxxxxx" />
            <add name="NEW_RELIC_APP_NAME" value="Log4NetFrameworkTestApp" />
            <add name="NEWRELIC_LOG_LEVEL" value="debug" />
            <add name="NEW_RELIC_APPLICATION_LOGGING_FORWARDING_ENABLED" value="true" />
        </environmentVariables>
    </add>
    <applicationPoolDefaults managedRuntimeVersion="v4.0">
        <processModel identityType="ApplicationPoolIdentity" loadUserProfile="true" setProfileEnvironment="false" />
    </applicationPoolDefaults>
</applicationPools>

For Maintainers Only or Hero Triaging this bug
Suggested Priority (P1,P2,P3,P4,P5): P4
Suggested T-Shirt size (S, M, L, XL, Unknown): S

@JcolemanNR JcolemanNR added the documentation Improvements or additions to documentation label Mar 7, 2022
@workato-integration
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation intern
Projects
None yet
Development

No branches or pull requests

3 participants