This page describes how to uninstall the .NET Agent. This procedure frees the license associated with the agent and makes it available for another app agent to use.

Do not follow these instructions if you are doing an upgrade. To upgrade to a new version, see Upgrade the .NET Agent for Windows.

To uninstall the .NET Agent completely:

  1. Stop IIS, instrumented Windows services, and instrumented standalone applications.

    Failing to stop instrumented applications before uninstalling the agent requires you to reboot the machine to complete the uninstall.

  2. Stop the AppDynamics.Agent.Coordinator service.
  3. From the Control Panel, select Add/Remove Programs, and remove the AppDynamics .NET Agent.
  4. The uninstall procedure does not remove configuration files. You must delete the configuration directory: %ProgramData%\AppDynamics
  5. Restart IIS, Windows services, and standalone applications.

In some cases, another process interferes with the .NET Agent uninstallation process by locking the profiler.dll. If uninstallation fails, use a utility such as Process Explorer to see determine if a process is using profiler.dll. If so, then terminate the process; otherwise, reboot the machine. Then, retry the uninstallation.