This post is part of a series of posts designed to guide you through troubleshooting common issues in the .NET agent. For more context, please see the .NET Agent not reporting troubleshooting guide>.
- The .NET agent profiler log for your application’s process says
This application pool (<APP_POOL_ID>) is not explicitly configured to be instrumented or not but application pools are set to be disabled by default.
- Make sure the third-to-last word is “disabled”, not “enabled”. If it says that app pools are set to be enabled by default, these instructions do not apply.
What it means.
- In your global
C:\ProgramData\New Relic\.NET Agent), the line
<defaultBehavior instrument="false"/>is set, meaning that the agent will not instrument any app pools unless they are explicitly declared.
- The application pool displayed inside the parenthesis of the message in the profiler log is not explicitly declared to be instrumented in the
- If you want to instrument all app pools by default, change the line
<applicationPools> <defaultBehavior instrument="true"/> </applicationPools>
- If you want to enable instrumentation for only this app pool, leave the defaultBehavior line set to
false, then explicitly declare the app pool to be instrumented.
<applicationPools> <defaultBehavior instrument="false"/> <applicationPool name="MyAppPool" instrument="true"/> </applicationPools>
- Issue a command-line