Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

NET (Agent, Installation)

Failed to add windows service to AppDynamics


Failed to add windows service to AppDynamics


I can't add windows service to AppD



      <automatic />
        <standalone-application executable="E:\ASApps\MFMMWWS\AccessSoftek.MW.System.Service.Host.exe">
           <tier name="MFMMW winservice" />




Error form AgentLog.txt

AccessSoftek.MW.System.Service.Host 1 16 Error AgentTransientEventManager Error occurred during handling of operations : Exception: System.NullReferenceException: Object reference not set to an instance of an object.


I tried to configure POCO Entry Points (
But I didn't discovery any Classes/Methodes in the Transaction Discovery Tool


By replying you agree to the Terms and Conditions of the AppDynamics Community.
Failed to add windows service to AppDynamics
AppDynamics Team

Hi Svdubovik,


In case of Windows Services/Standalone applications, if your Windows service or standalone application doesn't implement an auto-detected framework .net agent do not capture BTs OOTB and you have to configure Custom Match Rules of type ".Net Class/Method" to initiate the BT.

For more details refer the following document


One way of identifying appropriate Match Rules is by enabling the "find-entry-points" node level property.

(assuming application is making some common exit calls like Http/DB etc).


Following docs explains how to enable this node level property.


Once you enable this, all the executing call stacks related transaction of the application will be dumped into BusinessTransaction.txt logs. Which we can use to create Match Rules.

Please enable above node property at tier level and execute transactions which you will like to monitor. Review theBusinessTransaction.txt logs and you should see empty stack dumped into BT logs.


Once you find the appropritae class/method from call stack to create custom match rule ( POCO). please refer the below document.


if you still face any issue, please provide us zip of complete DotNetAgent folder for review located at %ProgramData%\AppDynamics or if you have changed the default location then provide the same to troubleshoot further. This is a hidden folder and can be found at the following location:

Windows Server 2008 and later %ProgramData%\AppDynamics\DotNetAgent

Windows Server 2003 %AllUsersProfile%\Application Data\AppDynamics\DotNetAgent





Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.



Confitm that the exe you are tring to instrument is a .Net by running the command

 tasklist /m "mscor*"