# Using .NET APM Agent to monitor server side SharePoint IIS sites

**URL:** <https://discuss.elastic.co/t/using-net-apm-agent-to-monitor-server-side-sharepoint-iis-sites/249695>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [September 23, 2020, 6:51pm UTC](https://discuss.elastic.co/t/using-net-apm-agent-to-monitor-server-side-sharepoint-iis-sites/249695 "2020-09-23T18:51:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkuhns](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@tkuhns](https://discuss.elastic.co/u/tkuhns)\
**Post date:** [September 23, 2020, 6:51pm UTC](https://discuss.elastic.co/t/using-net-apm-agent-to-monitor-server-side-sharepoint-iis-sites/249695/1 "2020-09-23T18:51:25Z")

</div>

I have been attempting to setup the .NET Agent for use on a SharePoint IIS site following the instructions that I found in [Cannot make APM Client work on IIS](https://discuss.elastic.co/t/cannot-make-apm-client-work-on-iis/211179). The sites are managed by other members of my team and I am trying to put together a process so this could be done in scale if need be.

However, upon using the NuGet CLI, I receive the following packages:  
Ben.Demystifier.0.1.6  
Elastic.Apm.1.6.1  
Elastic.Apm.AspNetFullFramework.1.6.1  
Microsoft.Diagnostics.Tracing.TraceEvent.2.0.2  
Newtonsoft.Json.11.0.2  
System.Buffers.4.4.0  
System.Collections.Immutable.1.5.0  
System.Diagnostics.DiagnosticSource.4.6.0  
System.Memory.4.5.3  
System.Numerics.Vectors.4.4.0  
System.Reflection.Metadata.1.6.0  
System.Runtime.CompilerServices.Unsafe.4.5.2  
System.Threading.Tasks.Dataflow.4.9.0  
System.Threading.Tasks.Extensions.4.5.3

Are all of these dll's necessary and is this the right way of going about this? If not, some more precise instructions would be appreciated.

If any other information is needed please let me know and thanks for the assistance.

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [September 29, 2020, 12:29pm UTC](https://discuss.elastic.co/t/using-net-apm-agent-to-monitor-server-side-sharepoint-iis-sites/249695/2 "2020-09-29T12:29:06Z")

</div>

Hi @tkuhns,

regarding the list of dlls: Yes, the agent depends on those, so you'll need those dependencies, otherwise loading the agent dependency will fail.

---

<div class="post-metadata">

**Author:** ![tkuhns](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@tkuhns](https://discuss.elastic.co/u/tkuhns)\
**Post date:** [October 16, 2020, 3:58pm UTC](https://discuss.elastic.co/t/using-net-apm-agent-to-monitor-server-side-sharepoint-iis-sites/249695/3 "2020-10-16T15:58:08Z")

</div>

I haven't had much luck getting the .NET agent to display in Kibana. I downloaded the Elastic.Apm.AspNetFullFramework package and moved the dll's related to dotnet versions 4.5 and 4.6 to the bin folder of the site.

I updated the web.config file with the following:

- Added the ElasticAPM module  
`<modules> <add name="ElasticApmModule" type="Elastic.Apm.AspNetFullFramework.ElasticApmModule, Elastic.Apm.AspNetFullFramework" /> </modules>`

- Added configuration settings for the APM  
`<appSettings> <add key="ElasticApm:ServerUrls" value="http://APMSERVERNAME:8200" /> <add key="ElasticApm:ServiceNodeName" value="SITENAME" /> <add key="ElasticApm:CaptureBody" value="all" /> </appSettings>`

- Had to bind the System.Net.Http version to get past an error the site was receiving after adding the APM entries  
`<assemblyBinding> <dependentAssembly> <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.0.0.0" /> </dependentAssembly> </assemblyBinding>`

The site seems a bit unstable after making these changes. Sometimes I receive a 500 error, but this is sporadic and I haven't been able to figure out the root cause. When the site does load, I don't receive any transaction data in Kibana like I would expect. Any ideas/suggestions?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 6, 2020, 11:58am UTC](https://discuss.elastic.co/t/using-net-apm-agent-to-monitor-server-side-sharepoint-iis-sites/249695/4 "2020-11-06T11:58:44Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
