# Elastic.Apm.NetCoreAll does not work when deployed on windows server machine

**URL:** <https://discuss.elastic.co/t/elastic-apm-netcoreall-does-not-work-when-deployed-on-windows-server-machine/286018>\
**Category:** APM\
**Tags:** dotnet, language-clients\
**Created:** [October 6, 2021, 11:23am UTC](https://discuss.elastic.co/t/elastic-apm-netcoreall-does-not-work-when-deployed-on-windows-server-machine/286018 "2021-10-06T11:23:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adil\_FATMI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adil_fatmi/32/80534_2.png) [@Adil\_FATMI](https://discuss.elastic.co/u/Adil_FATMI)\
**Post date:** [October 6, 2021, 11:23am UTC](https://discuss.elastic.co/t/elastic-apm-netcoreall-does-not-work-when-deployed-on-windows-server-machine/286018/1 "2021-10-06T11:23:22Z")

</div>

Hello there

I'm trying to use Elastic.Apm.NetCoreAll on console App developped with .Net.

When running on my laptop, it s working.  
But, when i publish console app on windows 2016 server, i got this message :  
The framework 'Microsoft.AspNetCore.App', version '5.0.0' was not found.

- No frameworks were found.  
I listed runtimes deployed on windows server 2016 machine, i got  
E:\Batchs\Calcul\OrangeConsoleProcessMail\>dotnet --list-runtimes  
Microsoft.NETCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]  
Microsoft.NETCore.App 5.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Any help please.

---

<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:** [October 6, 2021, 12:14pm UTC](https://discuss.elastic.co/t/elastic-apm-netcoreall-does-not-work-when-deployed-on-windows-server-machine/286018/2 "2021-10-06T12:14:51Z")

</div>

Hi @Adil_FATMI,

I think something is missing on the Windows Server 2016 machine - could you try the solution described [here](https://stackoverflow.com/a/66578692/1783306)?

---

<div class="post-metadata">

**Author:** ![Adil\_FATMI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adil_fatmi/32/80534_2.png) [@Adil\_FATMI](https://discuss.elastic.co/u/Adil_FATMI)\
**Post date:** [October 7, 2021, 7:15am UTC](https://discuss.elastic.co/t/elastic-apm-netcoreall-does-not-work-when-deployed-on-windows-server-machine/286018/3 "2021-10-07T07:15:52Z")

</div>

Hi  
Thanks for reply  
The link is about Linux systems. I removed all references to APM from console app and it works. I guess that this package is not compatible with windows server 2016.

---

<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:** [October 28, 2021, 3:16am UTC](https://discuss.elastic.co/t/elastic-apm-netcoreall-does-not-work-when-deployed-on-windows-server-machine/286018/4 "2021-10-28T03:16:06Z")

</div>

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