# Elastic-apm client .NET

**URL:** <https://discuss.elastic.co/t/elastic-apm-client-net/183843>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [June 2, 2019, 1:59am UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843 "2019-06-02T01:59:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paulo\_de\_Albuquerque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulo_de_albuquerque/32/42735_2.png) [@Paulo\_de\_Albuquerque](https://discuss.elastic.co/u/Paulo_de_Albuquerque)\
**Post date:** [June 2, 2019, 1:59am UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/1 "2019-06-02T01:59:35Z")

</div>

Greetings my friends,  
How do I add the elastic apm agent to the .NET application?  
Thanks a lot for the help.

**Kibana version** : 6.4

**Elasticsearch version** : 6.4

**APM Server version** : 6.4

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [June 2, 2019, 2:18am UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/2 "2019-06-02T02:18:06Z")

</div>

Hi @Paulo_de_Albuquerque, welcome to the forum and thanks for checking out Elastic APM.

You can find documentation on how to set up the agent at [https://www.elastic.co/guide/en/apm/agent/dotnet/current/index.html](https://www.elastic.co/guide/en/apm/agent/dotnet/current/index.html). Have a read of that and let us know if anything is unclear.

Please be aware that you will need to upgrade your Elastic Stack to 6.5 or greater to use the .NET agent.

---

<div class="post-metadata">

**Author:** ![Sergey\_Kleyman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergey_kleyman/32/39333_2.png) [@Sergey\_Kleyman](https://discuss.elastic.co/u/Sergey_Kleyman)\
**Post date:** [June 2, 2019, 5:34am UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/3 "2019-06-02T05:34:04Z")

</div>

@Paulo_de_Albuquerque you can also take a look at [.NET agent Github repo](https://github.com/elastic/apm-agent-dotnet) (it's open source so you are welcome to contribute and/or open issues). There are [a few sample applications](https://github.com/elastic/apm-agent-dotnet/tree/master/sample) you can use as a template.

BTW does your application target .NET Core or full .NET Framework?

---

<div class="post-metadata">

**Author:** ![Paulo\_de\_Albuquerque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulo_de_albuquerque/32/42735_2.png) [@Paulo\_de\_Albuquerque](https://discuss.elastic.co/u/Paulo_de_Albuquerque)\
**Post date:** [June 3, 2019, 5:48pm UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/4 "2019-06-03T17:48:50Z")

</div>

Thanks a lot.  
My version is 6.4.  
I will have to do upgrade for 6.5

---

<div class="post-metadata">

**Author:** ![Paulo\_de\_Albuquerque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulo_de_albuquerque/32/42735_2.png) [@Paulo\_de\_Albuquerque](https://discuss.elastic.co/u/Paulo_de_Albuquerque)\
**Post date:** [June 3, 2019, 5:50pm UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/5 "2019-06-03T17:50:44Z")

</div>

Thank you!  
my application is .NET Framework

---

<div class="post-metadata">

**Author:** ![Paulo\_de\_Albuquerque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulo_de_albuquerque/32/42735_2.png) [@Paulo\_de\_Albuquerque](https://discuss.elastic.co/u/Paulo_de_Albuquerque)\
**Post date:** [June 6, 2019, 10:27pm UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/6 "2019-06-06T22:27:18Z")

</div>

Hi !  
I received this error when I try install (Elastic.apm.all)

# 

Could not install package 'Elastic.Apm.AspNetCore 0.0.2-alpha'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

#

---

<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:** [June 6, 2019, 10:40pm UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/7 "2019-06-06T22:40:09Z")

</div>

@ [Paulo\_de\_Albuquerque](https://discuss.elastic.co/u/Paulo_de_Albuquerque) the problem is that your application targets .NET Framework 4.5, which is a fairly old version and we don't support that.

We support Full Framework from version 4.6.1. So the only way to make it work is to update your application to target at least 4.6.1.

---

<div class="post-metadata">

**Author:** ![Paulo\_de\_Albuquerque](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulo_de_albuquerque/32/42735_2.png) [@Paulo\_de\_Albuquerque](https://discuss.elastic.co/u/Paulo_de_Albuquerque)\
**Post date:** [June 7, 2019, 2:10pm UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/8 "2019-06-07T14:10:09Z")

</div>

OK.  
Thanks a lot

---

<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:** [June 28, 2019, 10:10am UTC](https://discuss.elastic.co/t/elastic-apm-client-net/183843/9 "2019-06-28T10:10:09Z")

</div>

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