Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

.NET agent start/stop always prompt for IIS reset. Why ?


Every time I start or stop dynatrace 6.3 .NET agent on a server, I get prompted to make an IIS reset on that server. This is IIS 7. Why do we need to make IIS reset to start/stop this agent, and is it mandatory ?


Dynatrace Pro
Dynatrace Pro

Yes you do. Since dynatrace application monitoring does instrumentation at the byte code level. In order for the agent to be disabled it need to be unloaded from memory and the app reloaded without the agent.

Dynatrace Advisor
Dynatrace Advisor

If you mean the "Active"/"Inactive" buttons in the .NET Agent Configuration Tool: The reason is that these buttons add/remove environment variables system-wide. Since env-variables in windows only inherit from parent processes, this only has an effect if IIS is properly restarted (iisreset) or the whole machine is rebooted.

If you want to disable agent injection for certain AppPools, you can also just untick the checkbox and then only recycle the concerned AppPool. No need for iisreset in this case.