The .Net Agent is not able to connect to the Controller, due to an incorrect account name and account access keys in the .Net Agent configuration.
The following error message appears when using an SSL connection (port 8181/443):
Controller communication failed. Details: The remote server returned an error: (401) Unauthorized. Please use certmgr.msc to add Controller Certification Authority certificate to "Trusted Root Certification Authorities"at computer account (system) level.
Note: The SSL error is a red herring. The (401) Unauthorized piece of the message is important.
The following error message appears when using a non-SSL connection (port 8090/80):
Controller communication failed. Details: The remote server returned an error: (401) Unauthorized.
Verify the account credentials in the Controller UI using the following steps (applicable to version 4.3):
Open AppDynamics Controller UI and log in as an administrator.
Click on the gear icon in the top right corner of the Controller UI.
Click on License then Account.
Note the value of "Name". This will act as value for Account Name within the Agent Configuration Tool.
Note the value of "Access Key". This will act as value for Account Access Key within the Agent Configuration Tool.