# .NET framwork APM on windows server 2012 (IIS 8.5) not capturing data

**URL:** <https://discuss.elastic.co/t/net-framwork-apm-on-windows-server-2012-iis-8-5-not-capturing-data/337828>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [July 6, 2023, 6:16pm UTC](https://discuss.elastic.co/t/net-framwork-apm-on-windows-server-2012-iis-8-5-not-capturing-data/337828 "2023-07-06T18:16:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dov](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Dov](https://discuss.elastic.co/u/Dov)\
**Post date:** [July 6, 2023, 6:16pm UTC](https://discuss.elastic.co/t/net-framwork-apm-on-windows-server-2012-iis-8-5-not-capturing-data/337828/1 "2023-07-06T18:16:12Z")

</div>

**Elasticsearch version** : 8.5.3

I tried to install APM profiler on windows server 2012 R2 with IIS 8.5 with 80-90 application pools base .net framework.

The APM Profiler is working well on IIS 10, and I don't have any problems to capture data with it.  
I know I can't use environment in IIS 8.5, so I tried the globally on the server (with using global environment variables).  
I have so many logs with errors but one line I think is the problem

`[INFO] AssemblyLoadFinished: Elastic.Apm.Profiler.Managed was not loaded domain-neutral`

and I know I need to allow Elastic.Apm.Profiler.Managed to be loaded domain-neutral as it say here  
[[BUG] Allow Elastic.Apm.Profiler.Managed to be loaded domain-neutral #1561](https://github.com/elastic/apm-agent-dotnet/issues/1561)

I set the registry key, but it didn't help, I still have the same error.

what else I can do ?

Thank you

---

<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:** [July 14, 2023, 2:10pm UTC](https://discuss.elastic.co/t/net-framwork-apm-on-windows-server-2012-iis-8-5-not-capturing-data/337828/2 "2023-07-14T14:10:40Z")

</div>

Hi,

unfortunately I don't have any out-of-the-box solution for this. We'd need to look into this in more detail - the best would be to just open an issue [in the agent repo](https://github.com/elastic/apm-agent-dotnet) and give us as much info as you can (e.g. .NET version, exact IIS version, OS version, etc.).

Also, to make sure I get this correctly: on Windows Server 2012 R2 on IIS 8.5 this issue affects ALL the apps, right? In other words, none of the apps have any tracing and they do no report any data to Elastic APM, right? So even if you set the global environment variables (both for the profiler and for `COMPlus_LoaderOptimization`, the agent still does not report data?

Reason I ask is that I want to make sure that `AssemblyLoadFinished: Elastic.Apm.Profiler.Managed was not loaded domain-neutral` log is indeed from the IIS .NET application and not from some other random .NET 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:** [August 11, 2023, 2:11pm UTC](https://discuss.elastic.co/t/net-framwork-apm-on-windows-server-2012-iis-8-5-not-capturing-data/337828/3 "2023-08-11T14:11:20Z")

</div>

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