# \#dotnet

**URL:** https://discuss.elastic.co/tag/dotnet/30.md

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

---

## [APM instrumentation for Classic ASP application on IIS](https://discuss.elastic.co/t/apm-instrumentation-for-classic-asp-application-on-iis/390900)

<div class="topic-metadata">

**Author:** [@AliLemaizi](https://discuss.elastic.co/u/AliLemaizi)\
**Replies:** 1\
**Last updated:** [October 9, 2026, 6:44am UTC](https://discuss.elastic.co/t/apm-instrumentation-for-classic-asp-application-on-iis/390900 "2026-10-09T06:44:14Z")

</div>

We are currently running an Elastic APM POC and would like your assistance with monitoring a legacy application based on Classic ASP running on Microsoft IIS. For the Classic ASP application, however, we understand that…

---

## [.NET auto-instrumentation not working](https://discuss.elastic.co/t/net-auto-instrumentation-not-working/388966)

<div class="topic-metadata">

**Author:** [@Umut](https://discuss.elastic.co/u/Umut)\
**Replies:** 1\
**Last updated:** [August 4, 2026, 2:42pm UTC](https://discuss.elastic.co/t/net-auto-instrumentation-not-working/388966 "2026-08-04T14:42:42Z")

</div>

Kibana version: v 7.16.3 Elasticsearch version: v 7.16.3 APM Server version: v 7.16.3 Original install method (e.g. download page, yum, deb, from source, etc.) and version: GitHub - elastic/apm-agent-dotnet · GitHub I…

---

## [Installing APM Agent for .NET App on OpenShift](https://discuss.elastic.co/t/installing-apm-agent-for-net-app-on-openshift/386876)

<div class="topic-metadata">

**Author:** [@Umut](https://discuss.elastic.co/u/Umut)\
**Replies:** 2\
**Last updated:** [June 16, 2026, 12:07pm UTC](https://discuss.elastic.co/t/installing-apm-agent-for-net-app-on-openshift/386876 "2026-06-16T12:07:07Z")

</div>

Hello, I want to install an APM agent on a .NET application running on OpenShift. How can I do it? Thanks.

---

## [Transactions Not Properly Labeled Since .NET 10 Upgrade](https://discuss.elastic.co/t/transactions-not-properly-labeled-since-net-10-upgrade/384458)

<div class="topic-metadata">

**Author:** [@Brandon\_Liles](https://discuss.elastic.co/u/Brandon_Liles)\
**Replies:** 1\
**Last updated:** [February 2, 2026, 1:39pm UTC](https://discuss.elastic.co/t/transactions-not-properly-labeled-since-net-10-upgrade/384458 "2026-02-02T13:39:20Z")

</div>

Kibana version: 8.18.2 Elasticsearch version: 8.18.2 APM Server version: 8.18.2 APM Agent language and version: Elastic.Apm.NetCoreAll 1.34.1 running on .NET 10 Browser version: n/a Original install method (e.g. dow…

---

## [DLL hell; the elastic apm profiler vs OutSystems edition…](https://discuss.elastic.co/t/dll-hell-the-elastic-apm-profiler-vs-outsystems-edition/384737)

<div class="topic-metadata">

**Author:** [@avanlieshout](https://discuss.elastic.co/u/avanlieshout)\
**Replies:** 2\
**Last updated:** [January 26, 2026, 2:26pm UTC](https://discuss.elastic.co/t/dll-hell-the-elastic-apm-profiler-vs-outsystems-edition/384737 "2026-01-26T14:26:06Z")

</div>

DLL hell; the elastic apm profiler vs OutSystems edition… l.s. We are running our applications on an OutSystems platform (v11.32.0 (Build 44177)) which is a lowcode platform hosted on a windows server 2022 IIS. For app…

---

## [Profiler Auto Instrumentation for .net application](https://discuss.elastic.co/t/profiler-auto-instrumentation-for-net-application/382627)

<div class="topic-metadata">

**Author:** [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Replies:** 1\
**Last updated:** [October 13, 2025, 4:09pm UTC](https://discuss.elastic.co/t/profiler-auto-instrumentation-for-net-application/382627 "2025-10-13T16:09:42Z")

</div>

Hello Everyone I have single node ELK cluster running on 8.18 . I want to test APM for that i have sample .net core application running on localhost:5005 . I want to instrument my application without touching the code …

---

## [How to filter out all exception traces related to a EF Core exception?](https://discuss.elastic.co/t/how-to-filter-out-all-exception-traces-related-to-a-ef-core-exception/381883)

<div class="topic-metadata">

**Author:** [@nicystalker](https://discuss.elastic.co/u/nicystalker)\
**Replies:** 0\
**Last updated:** [September 11, 2025, 4:51pm UTC](https://discuss.elastic.co/t/how-to-filter-out-all-exception-traces-related-to-a-ef-core-exception/381883 "2025-09-11T16:51:27Z")

</div>

Hi, I’m trying to indicate the .NET APM client that the following exception, thrown from EF Core is properly handled: catch (DbUpdateException exception) when (exception.InnerException is PostgresException { …

---

## [Issue: EDOT-Dotnet in elastic dashboard showing random-id even though we are setting the service.node.name](https://discuss.elastic.co/t/issue-edot-dotnet-in-elastic-dashboard-showing-random-id-even-though-we-are-setting-the-service-node-name/381420)

<div class="topic-metadata">

**Author:** [@ullasa-sindhur](https://discuss.elastic.co/u/ullasa-sindhur)\
**Replies:** 1\
**Last updated:** [August 28, 2025, 11:55am UTC](https://discuss.elastic.co/t/issue-edot-dotnet-in-elastic-dashboard-showing-random-id-even-though-we-are-setting-the-service-node-name/381420 "2025-08-28T11:55:29Z")

</div>

Kibana version: 9.0.4 APM Server version: 9.0.4 APM Agent language and version: elastic otel dotnet - 1.1.0 Fresh install or upgraded from other version? migrating from apm-agent to elastic otel dotnet (EDOT) Is the…

---

## [Distributed tracing implementation with self hosted .net services](https://discuss.elastic.co/t/distributed-tracing-implementation-with-self-hosted-net-services/381125)

<div class="topic-metadata">

**Author:** [@amit37](https://discuss.elastic.co/u/amit37)\
**Replies:** 0\
**Last updated:** [August 19, 2025, 6:47am UTC](https://discuss.elastic.co/t/distributed-tracing-implementation-with-self-hosted-net-services/381125 "2025-08-19T06:47:49Z")

</div>

Hello Team, I need your support with distributed tracing implementation for my self hosted services running using .NET8 and Elastic.APM.AspNetCore version 1.30.0. There are 3 self hosted services and a client (develope…

---

## [APM Data flush API instead of waiting for Flush interval](https://discuss.elastic.co/t/apm-data-flush-api-instead-of-waiting-for-flush-interval/380698)

<div class="topic-metadata">

**Author:** [@Isaack](https://discuss.elastic.co/u/Isaack)\
**Replies:** 0\
**Last updated:** [August 3, 2025, 6:17pm UTC](https://discuss.elastic.co/t/apm-data-flush-api-instead-of-waiting-for-flush-interval/380698 "2025-08-03T18:17:46Z")

</div>

What is the status for adding the APM Data Flush API to .NET? It I see it has been added to some of the other languages.

---

## [Invalid Token error from Elastic APM .Net agent](https://discuss.elastic.co/t/invalid-token-error-from-elastic-apm-net-agent/380206)

<div class="topic-metadata">

**Author:** [@kinjalgranicus](https://discuss.elastic.co/u/kinjalgranicus)\
**Replies:** 6\
**Last updated:** [July 24, 2025, 4:11pm UTC](https://discuss.elastic.co/t/invalid-token-error-from-elastic-apm-net-agent/380206 "2025-07-24T16:11:23Z")

</div>

Hello, We have integrated .Net Elastic APM agent version 1.31 with IIS and our applications running on .Net framework 4.8 are throwing Invalid\_Token error. Error 1: Message:Could not load type 'Invalid\_Token.0x010002C…

---

## [What is the best index\_mode for the .Net trace data?](https://discuss.elastic.co/t/what-is-the-best-index-mode-for-the-net-trace-data/380050)

<div class="topic-metadata">

**Author:** [@Musab\_Dogan](https://discuss.elastic.co/u/Musab_Dogan)\
**Replies:** 1\
**Last updated:** [July 11, 2025, 6:33pm UTC](https://discuss.elastic.co/t/what-is-the-best-index-mode-for-the-net-trace-data/380050 "2025-07-11T18:33:17Z")

</div>

We collect trace data from a dotnet application with opentelemtry. Everything looks fine as expected. The use cause is checking the Observability =\> APM =\> Service whenever there is an issue or performance degradation. M…

---

## [Elasticsearch APM throughput metric is 6 times higher than it should be](https://discuss.elastic.co/t/elasticsearch-apm-throughput-metric-is-6-times-higher-than-it-should-be/379357)

<div class="topic-metadata">

**Author:** [@Berkay\_Tan](https://discuss.elastic.co/u/Berkay_Tan)\
**Replies:** 0\
**Last updated:** [June 20, 2025, 8:21am UTC](https://discuss.elastic.co/t/elasticsearch-apm-throughput-metric-is-6-times-higher-than-it-should-be/379357 "2025-06-20T08:21:44Z")

</div>

We are observing inconsistent throughput metrics in the APM UI when testing locally. :red\_exclamation\_mark: Problem: When a single GET request is sent to our .NET or Python application (instrumented with Elastic APM), t…

---

## [Structured Logging with Serilog & Elasticsearch – How to Avoid Mapping Explosion?](https://discuss.elastic.co/t/structured-logging-with-serilog-elasticsearch-how-to-avoid-mapping-explosion/378266)

<div class="topic-metadata">

**Author:** [@a\_mandel](https://discuss.elastic.co/u/a_mandel)\
**Replies:** 6\
**Last updated:** [June 5, 2025, 12:35pm UTC](https://discuss.elastic.co/t/structured-logging-with-serilog-elasticsearch-how-to-avoid-mapping-explosion/378266 "2025-06-05T12:35:08Z")

</div>

Hi, I'm using Serilog with Elasticsearch in a .NET application, and I'm writing logs to Elasticsearch data streams using a basic setup like this: Log.Logger = new LoggerConfiguration() .MinimumLevel.Information …

---

## [Best Practice for Using Multiple ILM Policies with Serilog and Elasticsearch Based on Log Levels in a .NET Application?](https://discuss.elastic.co/t/best-practice-for-using-multiple-ilm-policies-with-serilog-and-elasticsearch-based-on-log-levels-in-a-net-application/378265)

<div class="topic-metadata">

**Author:** [@a\_mandel](https://discuss.elastic.co/u/a_mandel)\
**Replies:** 3\
**Last updated:** [June 4, 2025, 4:37pm UTC](https://discuss.elastic.co/t/best-practice-for-using-multiple-ilm-policies-with-serilog-and-elasticsearch-based-on-log-levels-in-a-net-application/378265 "2025-06-04T16:37:51Z")

</div>

Hello, I’m working on a .NET application where I’m using Serilog to send logs to Elasticsearch. I want to apply different Index Lifecycle Management (ILM) policies based on the log level — for example, separate ILM poli…

---

## [Following upgrade, Agent.Tracer is apparently null. Initialization issue?](https://discuss.elastic.co/t/following-upgrade-agent-tracer-is-apparently-null-initialization-issue/378701)

<div class="topic-metadata">

**Author:** [@DR4296](https://discuss.elastic.co/u/DR4296)\
**Replies:** 4\
**Last updated:** [May 30, 2025, 12:42pm UTC](https://discuss.elastic.co/t/following-upgrade-agent-tracer-is-apparently-null-initialization-issue/378701 "2025-05-30T12:42:43Z")

</div>

Greetings All ! I have an existing Windows Desktop C# .NET application that has been using Elastic.Apm for .Net library version 1.25.3 on .NET version 4.6.1 for several years now. I am working on the small project of u…

---

## [.NET Elastic APM Agent Transactions Missing](https://discuss.elastic.co/t/net-elastic-apm-agent-transactions-missing/376863)

<div class="topic-metadata">

**Author:** [@fritziyeke](https://discuss.elastic.co/u/fritziyeke)\
**Replies:** 6\
**Last updated:** [May 21, 2025, 1:44pm UTC](https://discuss.elastic.co/t/net-elastic-apm-agent-transactions-missing/376863 "2025-05-21T13:44:07Z")

</div>

Kibana version: 8.16.3 Elasticsearch version: 8.16.3 APM Server version: 8.16.3 APM Agent language and version: .NET 1.31.0 Browser version: Original install method (e.g. download page, yum, deb, from source, etc.) …

---

## [Discard traces with no exit spans](https://discuss.elastic.co/t/discard-traces-with-no-exit-spans/377598)

<div class="topic-metadata">

**Author:** [@holterbades](https://discuss.elastic.co/u/holterbades)\
**Replies:** 1\
**Last updated:** [May 20, 2025, 7:46am UTC](https://discuss.elastic.co/t/discard-traces-with-no-exit-spans/377598 "2025-05-20T07:46:22Z")

</div>

Hello there, is it possible to discard traces which have no spans assigned to them? I am currently (manually) integrating APM in my .NET Framework WinForms application and I see a lot of traces which have no spans (whi…

---

## [How to install Agent Apm for DotNet Apps?](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262)

<div class="topic-metadata">

**Author:** [@amin\_nazari](https://discuss.elastic.co/u/amin_nazari)\
**Replies:** 5\
**Last updated:** [May 19, 2025, 2:30pm UTC](https://discuss.elastic.co/t/how-to-install-agent-apm-for-dotnet-apps/378262 "2025-05-19T14:30:27Z")

</div>

hello sir i have some questions that i couldnt find the answer i hope you help to solve it. in our company we have more that 200 dotnet application with different versions some of the are dotnet framework some others…

---

## [Elastic APM Attacher and .NET 6.0](https://discuss.elastic.co/t/elastic-apm-attacher-and-net-6-0/376098)

<div class="topic-metadata">

**Author:** [@aardvark4](https://discuss.elastic.co/u/aardvark4)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 9:32pm UTC](https://discuss.elastic.co/t/elastic-apm-attacher-and-net-6-0/376098 "2025-03-18T21:32:24Z")

</div>

Kibana version: 8.17.2 Elasticsearch version: 8.17.2 APM Server version: 8.17.2 APM Agent language and version: dotnet, but not sure the version (added by the attacher) Browser version: Chrome 134.0.6998.89 Ori…

---

## [Dynamics 365 on-premise integration with Elastic APM](https://discuss.elastic.co/t/dynamics-365-on-premise-integration-with-elastic-apm/375444)

<div class="topic-metadata">

**Author:** [@Engineer\_A](https://discuss.elastic.co/u/Engineer_A)\
**Replies:** 0\
**Last updated:** [March 5, 2025, 10:02am UTC](https://discuss.elastic.co/t/dynamics-365-on-premise-integration-with-elastic-apm/375444 "2025-03-05T10:02:52Z")

</div>

Is there any documentation or proven implementation for integrating Dynamics 365 on-premise with Elastic APM?

---

## [Performance tuning (StackTraceLimit, SpanStackTraceMinDuration)](https://discuss.elastic.co/t/performance-tuning-stacktracelimit-spanstacktraceminduration/375102)

<div class="topic-metadata">

**Author:** [@mbubnic](https://discuss.elastic.co/u/mbubnic)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 6:20pm UTC](https://discuss.elastic.co/t/performance-tuning-stacktracelimit-spanstacktraceminduration/375102 "2025-02-26T18:20:49Z")

</div>

Hi there, Kibana version: v 8.15.2 Elasticsearch version: v 8.15.2 APM Server version: v 8.15.2 APM Agent language and version: .net 8 version 1.31.0 Fresh install (POC) We would like to introduce real-time observa…

---

## [How to Instrument Custom Methods in .NET with Elastic APM (Like New Relic XML Configuration)](https://discuss.elastic.co/t/how-to-instrument-custom-methods-in-net-with-elastic-apm-like-new-relic-xml-configuration/374879)

<div class="topic-metadata">

**Author:** [@Mehedy\_Hasan](https://discuss.elastic.co/u/Mehedy_Hasan)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 12:04pm UTC](https://discuss.elastic.co/t/how-to-instrument-custom-methods-in-net-with-elastic-apm-like-new-relic-xml-configuration/374879 "2025-02-25T12:04:23Z")

</div>

Hi everyone, We are migrating to Elastic APM and trying to achieve custom method instrumentation for our .NET application. In New Relic, we used XML configuration to declare specific methods for instrumentation (as desc…

---

## [ How to Instrument Custom Methods in .NET with Elastic APM (Like New Relic XML Configuration)](https://discuss.elastic.co/t/how-to-instrument-custom-methods-in-net-with-elastic-apm-like-new-relic-xml-configuration/374883)

<div class="topic-metadata">

**Author:** [@DevOps\_OSL](https://discuss.elastic.co/u/DevOps_OSL)\
**Replies:** 0\
**Last updated:** [February 22, 2025, 2:44pm UTC](https://discuss.elastic.co/t/how-to-instrument-custom-methods-in-net-with-elastic-apm-like-new-relic-xml-configuration/374883 "2025-02-22T14:44:41Z")

</div>

Hi everyone, We are migrating to Elastic APM and trying to achieve custom method instrumentation for our .NET application. In New Relic, we used XML configuration to declare specific methods for instrumentation (as desc…

---

## [Disable sqleventlistener in AspNetFullFramework](https://discuss.elastic.co/t/disable-sqleventlistener-in-aspnetfullframework/374760)

<div class="topic-metadata">

**Author:** [@ashok4v](https://discuss.elastic.co/u/ashok4v)\
**Replies:** 0\
**Last updated:** [February 19, 2025, 12:09pm UTC](https://discuss.elastic.co/t/disable-sqleventlistener-in-aspnetfullframework/374760 "2025-02-19T12:09:00Z")

</div>

APM Agent language and version: Elastic APM .Net 1.28.0 Original install method and version: Nuget package Elastic.Apm 1.28.0 Elsatic.Apm.AspNetFullFramework 1.28.0 We are using Elastic.Apm.AspNetFullFramework in our…

---

## [.Net Apm Agent Installation](https://discuss.elastic.co/t/net-apm-agent-installation/373279)

<div class="topic-metadata">

**Author:** [@Ankita\_Pachauri](https://discuss.elastic.co/u/Ankita_Pachauri)\
**Replies:** 2\
**Last updated:** [February 3, 2025, 6:01pm UTC](https://discuss.elastic.co/t/net-apm-agent-installation/373279 "2025-02-03T18:01:03Z")

</div>

Hi Team, We are trying to implement the elastic APM agent on a web portal running on .NET framework 4.5.2. As per the documentation 4.6.2 or above is supported. Is there a workaround for this problem. We also tried addi…

---

## [ELK APM .NET System.NullReferenceException](https://discuss.elastic.co/t/elk-apm-net-system-nullreferenceexception/371079)

<div class="topic-metadata">

**Author:** [@Anders\_Ekdahl](https://discuss.elastic.co/u/Anders_Ekdahl)\
**Replies:** 1\
**Last updated:** [February 3, 2025, 1:40pm UTC](https://discuss.elastic.co/t/elk-apm-net-system-nullreferenceexception/371079 "2025-02-03T13:40:07Z")

</div>

We're using the Elastic.Apm NuGet package and noticed that it threw a NullReferenceException in the ElasticActivityListener. The stack trace is: System.NullReferenceException: Object reference not set to an instance of…

---

## [Dotnet agent configuration](https://discuss.elastic.co/t/dotnet-agent-configuration/371592)

<div class="topic-metadata">

**Author:** [@Sachin\_Chourasiya](https://discuss.elastic.co/u/Sachin_Chourasiya)\
**Replies:** 1\
**Last updated:** [February 3, 2025, 1:23pm UTC](https://discuss.elastic.co/t/dotnet-agent-configuration/371592 "2025-02-03T13:23:03Z")

</div>

Hi All, i want to monitor ASP.NET Core application running on docker container and i have setup the integrated apm server on different server, now i want to monitor .net application using .net apm agent but when i look …

---

## [NTLM negotiation logged as ERROR](https://discuss.elastic.co/t/ntlm-negotiation-logged-as-error/368877)

<div class="topic-metadata">

**Author:** [@dsantos98](https://discuss.elastic.co/u/dsantos98)\
**Replies:** 1\
**Last updated:** [January 30, 2025, 6:15am UTC](https://discuss.elastic.co/t/ntlm-negotiation-logged-as-error/368877 "2025-01-30T06:15:48Z")

</div>

Environment Windows .NET Framework 4.8 WebApp Describe the bug The situation I came across is when my web application receives a request and that request triggers a request/transaction using HttpWebRequest (System.Net)…

---

## [Spans won't be shown in APM -\> Services/Traces](https://discuss.elastic.co/t/spans-wont-be-shown-in-apm-services-traces/371826)

<div class="topic-metadata">

**Author:** [@at\_andreas](https://discuss.elastic.co/u/at_andreas)\
**Replies:** 0\
**Last updated:** [December 11, 2024, 10:51am UTC](https://discuss.elastic.co/t/spans-wont-be-shown-in-apm-services-traces/371826 "2024-12-11T10:51:01Z")

</div>

I'm working on a Framework 4.8 web application (C#) and using the latest NuGet packages: Elastic.Apm.AspNetFullFramework Elastic.Apm.NetCoreAll I start new spans via Transaction.StartSpan (Agent.Tracer.CurrentTransact…

[Next page](https://discuss.elastic.co/tag/dotnet/30.md?match_all_tags=true&page=1&tags%5B%5D=dotnet)
