Install APM Insight .NET Agent
To add a new .NET Agent monitor in Applications Manager, go to the APM tab → Add New Monitor → .NET
![](https://www.manageengine.com/au/products/applications_manager/help/images/apm-insight-dotnet-agent-add-monitor-1.png)
Based on the version of the build you are using, follow the steps given below to add a .NET Agent monitor:
Note:
- Make sure to uninstall any third-party profilers before installing the APM Insight .NET agent.
- It is recommended to run a checksum validation to verify the integrity of the downloaded agent. Learn more
- Monitoring the application in a SharePoint/Multi-Domain Assembly Mode Environment requires specific workaround changes due to security concerns. This is especially true in scenarios where the same code runs in different domains. Learn more.
- For non-desktop Windows server types, the GUI tools of the .NET Agent are inaccessible due to platform constraints. In such cases, users can access the features through the configuration files located in C:\ProgramData\DotNetAgent:
- appfilter.conf , windows_appfilter.conf and standalone_appfilter.xml - Utilize these files to include/exclude selective applications from monitoring. Refer to this KB for more information.
- custom_instrumentation.json - Use this file for manual custom instrumentation.
Add a new .NET Agent monitor - Guided Installation (Build version 172100 & above)
- Choose between 'Host' and 'Container' based on the deployment type of your .NET application and click Next.
![](https://www.manageengine.com/au/products/applications_manager/help/images/apm-insight-dotnet-agent-add-monitor-3.png)
- Review and select the required options in the configuration tab based on your applications's environment. The Advanced Settings dropdown displays the details of your Applications Manager build such as the protocol, host, port, and APM Insight license key.
Note: Ensure that the Applications Manager URL is reachable from the application server. If not, use the EDIT option to provide the accessible IP address or hostname for the agent to connect and communicate with the Applications Manager.
![](https://www.manageengine.com/au/products/applications_manager/help/images/apm-insight-dotnet-agent-add-monitor-2.png)
Click on Next.
- Go to the server where the application is installed, open Windows PowerShell with administrator privileges, and execute the command displayed in the Monitor Addition view to complete the agent installation.
Note: This command internally downloads the guided-installation PowerShell script and .NET Agent from Applications Manager to complete the agent installation.
![](https://www.manageengine.com/au/products/applications_manager/help/images/apm-insight-dotnet-agent-add-monitor-4.png)
Note: Use the
Switch to manual steps option in the Applications Manager UI if any environmental issues cause command execution failure, to follow the
Manual Installation steps.
- Once the agent installation is successful, please perform some transactions to start monitoring your .NET application.
Note:
- By default, the IIS RESET command will be executed by the agent unless it is unchecked in the APM GUI while adding the monitor. In that case, ensure IIS RESET is performed manually during your application's downtime.
- The monitor will be added in Applications Manager only when some transactions are performed in your .NET application after IIS RESET.
Add a new .NET Agent monitor - Manual Installation (Build versions below 172100)
The .NET agent can be installed in build versions below 172100 using either of the following methods:
Direct installation
- Download the latest APM Insight .NET agent (apminsight-dotnetagent.msi) file.
- Execute the .msi file. This opens a "Select installation folder" window.
- Click on Browse and select the folder path to install the .NET Agent. Click Next.
![](https://www.manageengine.com/au/products/applications_manager/help/images/apm-insight-dotnet-agent-install-1.png)
- In the next window, under the Startup Options, check the Start the Agent after installation check-box if you wish to start the agent. Click Next to start the installation of the agent.
![](https://www.manageengine.com/au/products/applications_manager/help/images/apm-insight-dotnet-agent-install-3.png)
Note: This will restart IIS to start the agent.
- APM Insight .NET Agent Configuration window appears before the installation is completed. Configure Applications Manager's License Key, Host and Port here.
![](https://www.manageengine.com/au/products/applications_manager/help/images/apm-insight-dotnet-agent-install-2.png)
- Click the Save button to complete the installation.
Installation via command line
If you would like to monitor a Windows Core environment or similar environments, you may find it easiest to install the .NET agent via the command line. Follow the below steps to install via command line:
- Download the latest APM Insight .NET agent (apminsight-dotnetagent.msi) file.
- Open the command prompt and navigate to the path where you have downloaded the .msi file.
- Execute the following command to install the agent:
For version 6.5.1 and above
msiexec -i apminsight-dotnetagent.msi license.key=<Your_License_Key> apm.host<APM_HOST> apm.port=<APM_PORT> apm.protocol.https=True editconfig=false iisreset=true /log apm_install.log /quiet
For versions below 6.5.1
msiexec -i apminsight-dotnetagent.msi license.key=<Your_License_Key> editconfig=false iisreset=true /log apm_install.log /quiet
Command-line arguments:
editconfig - The agent will open the edit configuration window by default. Set this to false to install the agent without opening the edit configuration window.
iisreset - Agent will reset IIS by default. Set this to falseto install without resetting IIS.
Note: The agent can monitor the applications only after running the iisreset command.
- Once the installation is complete, perform some transactions to start monitoring.
Now the APM Insight .NET agent is ready and all the ASP.NET applications (such as WCF) running on the server will be monitored. After some transactions are performed, the collected data should be available in the APM tab of Applications Manager's web client within a few minutes. All .NET web applications hosted on the IIS will be monitored. Perform some transactions to start monitoring.
Note: If the APMInsight agent is not installed in admin mode, install it using the below command from the command prompt, which defines the AppManager hostname in the APMInsight.Net agent configuration window and performs a few transactions within the application. The application's data will be displayed within the APMInsight instance in the Applications Manager.
msiexec -i apminsight-dotnetagent.msi