# APM .NET Profiler loaded but not sending data

**URL:** <https://discuss.elastic.co/t/apm-net-profiler-loaded-but-not-sending-data/368138>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [October 2, 2024, 5:06pm UTC](https://discuss.elastic.co/t/apm-net-profiler-loaded-but-not-sending-data/368138 "2024-10-02T17:06:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [October 2, 2024, 5:06pm UTC](https://discuss.elastic.co/t/apm-net-profiler-loaded-but-not-sending-data/368138/1 "2024-10-02T17:06:47Z")

</div>

Hello,

I installed the APM .NET Profiler in IIS 10 with .NET Framework 4.8.1.  
I followed the instructions from  
[Profiler Auto instrumentation | APM .NET Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/dotnet/current/setup-auto-instrumentation.html#_internet_information_services_iis)

The logs are outputting but when default it only outputs these few lines:

```auto
[2024-10-02T08:49:36.790475700-07:00] [WARN] calltarget_rewriter_callback: skipping method as method replacement found but profiler has not been loaded into app domain. app_domain_id=2364754049408, token=100669846, caller_name=System.Data.SqlClient.SqlCommand.ExecuteReader()
[2024-10-02T08:49:36.892112500-07:00] [WARN] calltarget_rewriter_callback: skipping method as method replacement found but profiler has not been loaded into app domain. app_domain_id=2364754049408, token=100669816, caller_name=System.Data.SqlClient.SqlCommand.ExecuteScalar()
[2024-10-02T08:49:37.317430200-07:00] [WARN] calltarget_rewriter_callback: skipping method as method replacement found but profiler has not been loaded into app domain. app_domain_id=2364754049408, token=100669845, caller_name=System.Data.SqlClient.SqlCommand.ExecuteDbDataReader()

```

Based on the event log:  
Theres one log:

> .NET Runtime version 4.0.30319.0 - The profiler was loaded successfully. Profiler CLSID: '{FA65FE15-F085-4681-9B20-95E04F6C03CC}'. Process ID (decimal): 13072. Message ID: [0x2507].

wondering if something I am doing wrong? I checked the connectivity from apm server and the iis host and its fine.

---

<div class="post-metadata">

**Author:** ![stevejgordon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevejgordon/32/80912_2.png) [@stevejgordon](https://discuss.elastic.co/u/stevejgordon)\
**Post date:** [October 3, 2024, 6:43am UTC](https://discuss.elastic.co/t/apm-net-profiler-loaded-but-not-sending-data/368138/2 "2024-10-03T06:43:23Z")

</div>

Hi, @erikg. What type of [ASP.NET](http://ASP.NET) app is this? Web Forms, MVC, Web Pages, Web API, WCF, etc.? Do you have multiple applications in the same app pool? Do you see a single log file, or are there profiler\_managed logs? You could set the `ELASTIC_APM_PROFILER_LOG` environment variable to `trace` to gain more details about the profiler attachment.

We have had something similar reported but have not yet tied down a common scenario or root cause. I'll make another attempt to reproduce this and see if we can come up with anything on our end.

---

<div class="post-metadata">

**Author:** ![stevejgordon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevejgordon/32/80912_2.png) [@stevejgordon](https://discuss.elastic.co/u/stevejgordon)\
**Post date:** [October 4, 2024, 10:57am UTC](https://discuss.elastic.co/t/apm-net-profiler-loaded-but-not-sending-data/368138/3 "2024-10-04T10:57:11Z")

</div>

@erikg I've reproduced it, and it looks like a regression. Can you try 1.28.0 for now, which seems to be okay? I'm investigating the breaking change now.

---

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [October 4, 2024, 8:33pm UTC](https://discuss.elastic.co/t/apm-net-profiler-loaded-but-not-sending-data/368138/4 "2024-10-04T20:33:45Z")

</div>

Hey @stevejgordon  
I used 1.28.0 and it now works!

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/c/0cc3e25c6776b5abb3e6b51abb760917a0bc3c06.png)

---

<div class="post-metadata">

**Author:** ![stevejgordon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevejgordon/32/80912_2.png) [@stevejgordon](https://discuss.elastic.co/u/stevejgordon)\
**Post date:** [October 4, 2024, 8:59pm UTC](https://discuss.elastic.co/t/apm-net-profiler-loaded-but-not-sending-data/368138/5 "2024-10-04T20:59:31Z")

</div>

Thanks for confirming. We're working on fixing the regression in the next release.
