# ERROR WHEN INSTALLING ELASTIC.APM.AspNetCore IN VISUAL STUDIO 2019

**URL:** <https://discuss.elastic.co/t/error-when-installing-elastic-apm-aspnetcore-in-visual-studio-2019/280948>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [August 10, 2021, 4:05pm UTC](https://discuss.elastic.co/t/error-when-installing-elastic-apm-aspnetcore-in-visual-studio-2019/280948 "2021-08-10T16:05:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_David\_Jaramillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juan_david_jaramillo/32/76831_2.png) [@Juan\_David\_Jaramillo](https://discuss.elastic.co/u/Juan_David_Jaramillo)\
**Post date:** [August 10, 2021, 4:05pm UTC](https://discuss.elastic.co/t/error-when-installing-elastic-apm-aspnetcore-in-visual-studio-2019/280948/1 "2021-08-10T16:05:58Z")

</div>

Hi I am trying to install the Elastic APM.AspNetCore package, but I get the following error:

**Severity Code Description Project File Line Suppression State**  
**Error Could not install package 'Elastic.Apm.AspNetCore 1.11.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', 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.**

 ![MicrosoftTeams-image](https://us1.discourse-cdn.com/elastic/original/3X/9/9/9963475ad44c5d1cecbfc2865e17eb449c2322fa.png)

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [August 11, 2021, 12:42am UTC](https://discuss.elastic.co/t/error-when-installing-elastic-apm-aspnetcore-in-visual-studio-2019/280948/2 "2021-08-11T00:42:21Z")

</div>

> [@Juan\_David\_Jaramillo](#):
>
> 'Elastic.Apm.AspNetCore 1.11.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6'

Elastic.Apm.AspNetCore nuget package is not compatible with .NET Framework 4.6. It's a package to instrument [ASP.NET](http://ASP.NET) Core and it's compatible with (at current time of writing):

- .NET Core that implements .NET Standard 2.0
- .NETCoreApp 3.0
- .NET 5.0

An [ASP.NET](http://ASP.NET) Full Framework application running on at least .NET Framework 4.6.1 can be instrumented with [Elastic.Apm.AspNetFullFramework nuget package](https://www.nuget.org/packages/Elastic.Apm.AspNetFullFramework/). Please see [the documentation for how to configure in the application.](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup-asp-dot-net.html)

---

<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:** [August 31, 2021, 8:42pm UTC](https://discuss.elastic.co/t/error-when-installing-elastic-apm-aspnetcore-in-visual-studio-2019/280948/3 "2021-08-31T20:42:40Z")

</div>

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