# IIS Application Pools Crash When OneAgent Deep Monitoring Is Enabled (ConfuserEx Obfuscation)

**URL:** <https://community.dynatrace.com/t/iis-application-pools-crash-when-oneagent-deep-monitoring-is-enabled-confuserex-obfuscation/54585>\
**Category:** Troubleshooting\
**Tags:** iis, troubleshooting-guide\
**Created:** [January 27, 2026, 6:50am UTC](https://community.dynatrace.com/t/iis-application-pools-crash-when-oneagent-deep-monitoring-is-enabled-confuserex-obfuscation/54585 "2026-01-27T06:50:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhaveshbjoshi](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bhaveshbjoshi](https://community.dynatrace.com/u/bhaveshbjoshi)\
**Post date:** [January 27, 2026, 6:50am UTC](https://community.dynatrace.com/t/iis-application-pools-crash-when-oneagent-deep-monitoring-is-enabled-confuserex-obfuscation/54585/1 "2026-01-27T06:50:56Z")

</div>

## Summary

This community article applies to Dynatrace OneAgent for Windows /.NET running on **Microsoft IIS** with **deep monitoring** enabled. It helps you diagnose and resolve **IIS application pool crashes** that occur because the application is **obfuscated** with ConfuserEx or a similar tool, which includes protection that terminates the process when a instrumentation is detected.

## Problem

- **IIS application pools crash** shortly after application startup when **OneAgent deep monitoring** is enabled.

- **Dynatrace OneAgent logs** show that assemblies/modules **cannot be instrumented**

- Example logs line from OneAgent logs -

**Why this happens**

**ConfuserEx** is a .NET obfuscation tool that includes **anti‑debugging and anti‑tampering protections**.

When ConfuserEx detects:

- a debugger,

- a profiler,

- or runtime instrumentation (such as Dynatrace OneAgent deep monitoring), it intentionally terminates the process by calling:

This behavior is implemented directly in ConfuserEx, as shown here:

![bhaveshbjoshi_1-1769495875418.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/c/0c3c7d228467b13ef6571906c408fdc53e3278ae.png)  
ConfuserEx source (AntiDebug.Safe.cs)

> <https://github.com/yck1509/ConfuserEx/blob/v1.0.0/Confuser.Runtime/AntiDebug.Safe.cs#L13>

![bhaveshbjoshi_1-1769495875418.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/c/0c3c7d228467b13ef6571906c408fdc53e3278ae.png)  
Microsoft documentation- Environment.FailFast Method

> **[Environment.FailFast Method (System)](https://learn.microsoft.com/en-us/dotnet/api/system.environment.failfast?view=net-11.0)**
>
> Immediately terminates the process before reporting an error message. For Windows, the error message is written to the Windows Application event log, and the message and optional exception information is included in error reporting to Microsoft. For...

It’s important to note that Applications using ConfuserEx are known to be incompatible with the Dynatrace OneAgent, and crashes in such scenarios are expected. As a result, using ConfuserEx with the Dynatrace .NET agent is not supported.

## Troubleshooting steps

- Confirm with the application Developers whether ConfuserEx or any other obfuscator is used.
- Check for OneAgent logs with entry - `Module is unsupported (obfuscated or unsupported version). Skipping instrumentation. (AppConfig.dll)`
- Check the windows event logs. You may search for following entry in the Windows Events.

 ![bhaveshbjoshi_2-1769495918732.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/50c98ba125a0d715d044def65cc718cd8e70d665.png)

## Resolution

**Option 1:** Disable deep monitoring for the affected process group.  
**Option 2:** Rebuild the application without ConfuserEx obfuscation.

## Note:

In some scenarios the obfuscation tool may not crash the process but might lead to missing code-level data in trace and break some trace correlation.

## What’s next

If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket:

- OneAgent Support Archive from the affected host.
