Related pages: |
The MSI installer package for .NET Agent installs updated agent files and maintains legacy configurations. When you upgrade from .NET Agent < 3.9, or prior to 3.9, you must first uninstall the existing .NET Agent.
If you use the Azure Site Extension, see Install the Cisco AppDynamics Azure Site Extension for .NET.
The .NET Agent only supports in-place upgrade for these versions:
Major and minor releases after the currently installed version. For patch releases, you must uninstall the existing agent before upgrading.
For example, to install the patch release 4.1.0.1 over 4.1.0.0, uninstall the existing agent before upgrading.
Except for patches to the current version, you do not need to uninstall the old agent first when you upgrade from the >= 3.9.
w3wp
processes for instrumented IIS applications. Stop instrumented Windows services or standalone applications.Run a command-line agent install. For single-tenant Controller accounts, specify your account access key using the AD_CONTROLLER_ACCOUNT_ACCESS_KEY
parameter. For example:
msiexec /i "%USERPROFILE%\Downloads\dotNetAgentSetup.msi" /l log.txt /q AD_CONTROLLER_ACCOUNT_ACCESS_KEY=changeme |
The installation runs silently in the background.
If you forget to add the account access key for a single-tenant Controller account, you can run the Agent Configuration Utility or manually add it to the config.xml later. See Account Element. |
(Optional) Add the parameter INSTALLDIR=<path to installation directory>
if you have changed the installation directory. For example:
msiexec /i "%USERPROFILE%\Downloads\dotNetAgentSetup.msi" /l log.txt /q AD_CONTROLLER_ACCOUNT_ACCESS_KEY=changeme INSTALLDIR=<path to installation directory> |
iisreset
from the command line.Stop IIS, instrumented Windows services, and instrumented standalone applications.
If you shut down IIS but continue to see active IIS Worker Processes, check the Application Pools pane in the IIS Manager and stop any started application pools. Failing to stop instrumented applications before uninstalling the |
AppDynamics.Agent.Coordinator
service.In the Control Panel, select Add/Remove Programs. Remove the AppDynamics .NET Agent
.
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 if a process is using profiler.dll. If so, terminate the process. Otherwise, try rebooting the machine. Then retry the uninstallation. |
w3wp
processes for instrumented IIS applications. Stop instrumented Windows services or standalone applications.Run a command-line agent install. For single-tenant Controller accounts, specify your account access key using the AD_CONTROLLER_ACCOUNT_ACCESS_KEY
parameter. For example:
msiexec /i "%USERPROFILE%\Downloads\dotNetAgentSetup.msi" /l log.txt /q AD_CONTROLLER_ACCOUNT_ACCESS_KEY=changeme |
The installation runs silently in the background.
If you forget to add the account access key for a single-tenant Controller account, you can run the Agent Configuration Utility or manually add it to the config.xml later. See Account Element. |
iisreset
from the command line.Identify the right upgrade path based upon the method of tier naming and assignment (manual or automatic) and the type of application you instrument:
After installation, you may need to run the configuration utility to update your configuration and optionally remove legacy configurations.
Stop IIS and instrumented Windows services.
If you shut down IIS but continue to see active IIS Worker Processes, check the Application Pools pane in the IIS Manager and stop any started application pools. Failing to stop instrumented applications before uninstalling the |
AppDynamics.Agent.Coordinator
service.In the Control Panel, select Add/Remove Programs. Remove the AppDynamics .NET Agent
.
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 if a process is using profiler.dll. If so, terminate the process. Otherwise, try rebooting the machine. Then retry the uninstallation. |
w3wp
processes for instrumented IIS applications. Stop instrumented Windows services or standalone applications.Run a command-line agent install. For single-tenant Controller accounts, specify your account access key using the AD_CONTROLLER_ACCOUNT_ACCESS_KEY
parameter. For example:
msiexec /i "%USERPROFILE%\Downloads\dotNetAgentSetup.msi" /l log.txt /q AD_CONTROLLER_ACCOUNT_ACCESS_KEY=changeme |
The installation runs silently in the background.
If you forget to add the account access key for a single-tenant Controller account, you can run the Agent Configuration Utility or manually add it to the config.xml later. See Account Element. |
iisreset
from the command line.If you used the following environment variables with the earlier version, the MSI installer migrates the configurations to the new configuration file:
AppDynamicsAgent_CallGraphOptions
AppDynamicsAgent_DisableAppPools
AppDynamicsAgent_EnableInProcesses
AppDynamicsAgent_IgnoreCLREnv
AppDynamicsAgent_Profiler_Classes
Configure the agent based on your method of tier generation and assignment: automatic or manual.
The |
If you used automatic configuration with the earlier version of the , run the configuration utility to configure the agent:
For agents using manual tier generation and assignment, the installer package migrates the configurations for IIS applications and for Windows services to the config.xml
. At this stage, the configuration for IIS applications and Windows services is complete.
You can clean up legacy configurations by launching the Agent Configuration utility. When the utility detects agent settings from a previous version, it offers you the option to clean up.
The cleanup procedure modifies the web.config
files causing an IIS restart.
The utility removes these configurations:
web.config
files for IIS applications and application.config
files for Windows services.AppDynamicsAgent_IgnoreCLREnv
AppDynamicsAgent_CallGraphOptions
AppDynamicsAgent_EnableInProcesses
AppDynamicsAgent_DisableAppPools
AppDynamicsAgent_Profiler_Classes
Start IIS and instrumented Windows services.