# Working on NET6?

**URL:** <https://discuss.elastic.co/t/working-on-net6/285745>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [October 2, 2021, 4:33pm UTC](https://discuss.elastic.co/t/working-on-net6/285745 "2021-10-02T16:33:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_A\_Fernandez\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_a_fernandez_m/32/95378_2.png) [@Jose\_A\_Fernandez\_M](https://discuss.elastic.co/u/Jose_A_Fernandez_M)\
**Post date:** [October 2, 2021, 4:33pm UTC](https://discuss.elastic.co/t/working-on-net6/285745/1 "2021-10-02T16:33:24Z")

</div>

I'm triying to wire a net6 minimal ap, i'm using the package Elastic.Apm.NetCoreAll and and use the app.UseAllElasticApm(config) method, apm is not storing metrics, traces or anything. but this works on a net5 api. Any ideas ?

---

<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:** [October 5, 2021, 2:45am UTC](https://discuss.elastic.co/t/working-on-net6/285745/2 "2021-10-05T02:45:50Z")

</div>

Hi @Jose_A_Fernandez_M,

Since net6.0 has only just passed Release Candidate builds, we haven't as yet started testing on net6.0 but will be doing so shortly.

---

<div class="post-metadata">

**Author:** ![Jose\_A\_Fernandez\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_a_fernandez_m/32/95378_2.png) [@Jose\_A\_Fernandez\_M](https://discuss.elastic.co/u/Jose_A_Fernandez_M)\
**Post date:** [October 6, 2021, 12:25pm UTC](https://discuss.elastic.co/t/working-on-net6/285745/3 "2021-10-06T12:25:17Z")

</div>

thanks a lot for the quick reply, looking forward

---

<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 18, 2021, 7:23pm UTC](https://discuss.elastic.co/t/working-on-net6/285745/4 "2021-10-18T19:23:10Z")

</div>

@Jose_A_Fernandez_M I did some testing on this, findings here: [.NET6 testing/support · Issue #1513 · elastic/apm-agent-dotnet · GitHub](https://github.com/elastic/apm-agent-dotnet/issues/1513)

I was able to reproduce the issue with nothing being captured, but as I started to debug it, the problem went away - super strange.

Can you share some info about your environment? OS, and the output of `dotnet --info` would be super useful. Also another idea: if it does not work, could you maybe add this line below `app.UseAllElasticApm(config)` and see if it works with that?

```auto
Elastic.Apm.Agent.Subscribe(new AspNetCoreDiagnosticSubscriber());

```

---

<div class="post-metadata">

**Author:** ![Jose\_A\_Fernandez\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jose_a_fernandez_m/32/95378_2.png) [@Jose\_A\_Fernandez\_M](https://discuss.elastic.co/u/Jose_A_Fernandez_M)\
**Post date:** [October 19, 2021, 12:06pm UTC](https://discuss.elastic.co/t/working-on-net6/285745/5 "2021-10-19T12:06:37Z")

</div>

this is the output of dotnet --info , i did use app.UseAllElasticApm(config) when i reported

```auto
.NET SDK (reflecting any global.json):
 Version: 6.0.100-rc.2.21505.57
 Commit: ab39070116

Runtime Environment:
 OS Name: Windows
 OS Version: 10.0.19043
 OS Platform: Windows
 RID: win10-x64
 Base Path: C:\Program Files\dotnet\sdk\6.0.100-rc.2.21505.57\

Host (useful for support):
  Version: 6.0.0-rc.2.21480.5
  Commit: 6b11d64e7e

.NET SDKs installed:
  3.1.413 [C:\Program Files\dotnet\sdk]
  5.0.402 [C:\Program Files\dotnet\sdk]
  6.0.100-preview.4.21226.5 [C:\Program Files\dotnet\sdk]
  6.0.100-preview.7.21379.14 [C:\Program Files\dotnet\sdk]
  6.0.100-rc.2.21505.57 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.0-preview.4.21222.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.0-rc.2.21480.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0-preview.4.21222.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0-rc.2.21480.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.0-preview.4.21223.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.0-rc.2.21501.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

```

---

<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 9, 2021, 8:06am UTC](https://discuss.elastic.co/t/working-on-net6/285745/6 "2021-11-09T08:06:42Z")

</div>

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