<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Failed to add windows service to AppDynamics in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Failed-to-add-windows-service-to-AppDynamics/m-p/726778#M5464</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I can't add windows service to AppD&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Config&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;app-agents&amp;gt;
    &amp;lt;IIS&amp;gt;
      &amp;lt;automatic /&amp;gt;
    &amp;lt;/IIS&amp;gt;
	&amp;lt;standalone-applications&amp;gt;
        &amp;lt;standalone-application executable="E:\ASApps\MFMMWWS\AccessSoftek.MW.System.Service.Host.exe"&amp;gt;
           &amp;lt;tier name="MFMMW winservice" /&amp;gt;
        &amp;lt;/standalone-application&amp;gt;
    &amp;lt;/standalone-applications&amp;gt;
  &amp;lt;/app-agents&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;WinService&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpeg"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35707iAD67958BE3F096AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpeg" alt="image.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Error form AgentLog.txt&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="code-java"&gt;AccessSoftek.MW.&lt;SPAN class="code-object"&gt;System&lt;/SPAN&gt;.Service.Host 1 16 Error AgentTransientEventManager Error occurred during handling of operations : Exception: &lt;SPAN class="code-object"&gt;System&lt;/SPAN&gt;.NullReferenceException: &lt;SPAN class="code-object"&gt;Object&lt;/SPAN&gt; reference not set to an instance of an object.&lt;/PRE&gt;

&lt;P&gt;I tried to configure POCO Entry Points (&lt;A href="https://docs.appdynamics.com/display/PRO42/POCO+Entry+Points" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/POCO+Entry+Points&lt;/A&gt;)&lt;BR /&gt;But I didn't discovery any Classes/Methodes in the Transaction Discovery Tool&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpeg"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35704i7D0C1B6607EF2F70/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpeg" alt="image.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 10:06:28 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2017-04-07T10:06:28Z</dc:date>
    <item>
      <title>Failed to add windows service to AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Failed-to-add-windows-service-to-AppDynamics/m-p/726778#M5464</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I can't add windows service to AppD&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Config&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;app-agents&amp;gt;
    &amp;lt;IIS&amp;gt;
      &amp;lt;automatic /&amp;gt;
    &amp;lt;/IIS&amp;gt;
	&amp;lt;standalone-applications&amp;gt;
        &amp;lt;standalone-application executable="E:\ASApps\MFMMWWS\AccessSoftek.MW.System.Service.Host.exe"&amp;gt;
           &amp;lt;tier name="MFMMW winservice" /&amp;gt;
        &amp;lt;/standalone-application&amp;gt;
    &amp;lt;/standalone-applications&amp;gt;
  &amp;lt;/app-agents&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;WinService&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpeg"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35707iAD67958BE3F096AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpeg" alt="image.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Error form AgentLog.txt&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="code-java"&gt;AccessSoftek.MW.&lt;SPAN class="code-object"&gt;System&lt;/SPAN&gt;.Service.Host 1 16 Error AgentTransientEventManager Error occurred during handling of operations : Exception: &lt;SPAN class="code-object"&gt;System&lt;/SPAN&gt;.NullReferenceException: &lt;SPAN class="code-object"&gt;Object&lt;/SPAN&gt; reference not set to an instance of an object.&lt;/PRE&gt;

&lt;P&gt;I tried to configure POCO Entry Points (&lt;A href="https://docs.appdynamics.com/display/PRO42/POCO+Entry+Points" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/POCO+Entry+Points&lt;/A&gt;)&lt;BR /&gt;But I didn't discovery any Classes/Methodes in the Transaction Discovery Tool&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpeg"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35704i7D0C1B6607EF2F70/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpeg" alt="image.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 10:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Failed-to-add-windows-service-to-AppDynamics/m-p/726778#M5464</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2017-04-07T10:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to add windows service to AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Failed-to-add-windows-service-to-AppDynamics/m-p/726779#M5465</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Hi Svdubovik,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;In case of Windows Services/Standalone applications, i&lt;SPAN&gt;f your Windows service or standalone application doesn't implement an&amp;nbsp;auto-detected framework&lt;/SPAN&gt;&amp;nbsp;.net agent&amp;nbsp;do not&amp;nbsp;capture BTs OOTB and you have to configure Custom Match Rules of type ".Net Class/Method" to initiate the BT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;For more details refer the following document&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/Instrument+Windows+Services+and+Standalone+Applications" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/Instrument+Windows+Services+and+Standalone+Applications&lt;/A&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;One way of identifying appropriate Match Rules is by enabling the&amp;nbsp;"find-entry-points" node level property.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;(assuming application is making some common exit calls like Http/DB etc).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Following docs explains how to enable this node level property.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/App+Agent+Node+Properties+Reference#AppAgentNodePropertiesReference-find-entry-points" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/App+Agent+Node+Properties+Reference#AppAgentNodePropertiesReference-find-entry-points&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/App+Agent+Node+Properties#AppAgentNodeProperties-editregisterednodepropertyEditaRegisteredNodeProperty" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/App+Agent+Node+Properties#AppAgentNodeProperties-editregisterednodepropertyEditaRegisteredNodeProperty&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Please enable above node property at tier level and execute transactions which you will like to monitor. Review theBusinessTransaction.txt logs&amp;nbsp;and you should see empty stack dumped into BT logs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Once you find the appropritae class/method from call stack to create custom match rule ( POCO). please refer the below document.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/POCO+Entry+Points" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/POCO+Entry+Points&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p4"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;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:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p5"&gt;&lt;SPAN class="s1"&gt;Windows Server 2008 and later %ProgramData%\AppDynamics\DotNetAgent&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p5"&gt;&lt;SPAN class="s1"&gt;Windows Server 2003 %AllUsersProfile%\Application Data\AppDynamics\DotNetAgent&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p6"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p7"&gt;&lt;SPAN class="s1"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p7"&gt;&lt;SPAN class="s1"&gt;Ashish.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p8"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 13:38:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Failed-to-add-windows-service-to-AppDynamics/m-p/726779#M5465</guid>
      <dc:creator>Ashish_Singh</dc:creator>
      <dc:date>2017-04-07T13:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to add windows service to AppDynamics</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Failed-to-add-windows-service-to-AppDynamics/m-p/726780#M5466</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Confitm that the exe you are tring to instrument is a .Net by running the command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;CODE class="java plain"&gt;tasklist /m &lt;/CODE&gt;&lt;CODE class="java string"&gt;"mscor*"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="java string"&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/Instrument+Windows+Services+and+Standalone+Applications" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/Instrument+Windows+Services+and+Standalone+Applications&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="java string"&gt;Regards,&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="java string"&gt;Hari&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 14:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Failed-to-add-windows-service-to-AppDynamics/m-p/726780#M5466</guid>
      <dc:creator>Hariraj_J</dc:creator>
      <dc:date>2017-04-21T14:23:44Z</dc:date>
    </item>
  </channel>
</rss>

