---
title: "Shared IIS Configurations"
slug: "dotnet-shared-iis-configurations"
updated: 2018-08-18T17:23:38Z
published: 2018-08-18T17:23:38Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Shared IIS Configurations

By default, the Retrace agent for .NET on Windows will install a StackifyHttpModule in to IIS. This allows Retrace's .NET profiler to properly track when an ASP.NET request starts and ends.

**If you are using a shared IIS configuration, Retrace has no way to automatically register the StackifyHttpModule.**

You can learn more about using a [shared configuration](https://docs.microsoft.com/en-us/iis/manage/managing-your-configuration-settings/shared-configuration_264) with IIS in Microsoft's documentation.

### How to use Retrace with a shared IIS configuration

Since the Retrace agent cannot install the StackifyHttpModule automatically, you must manually add it to your application and then redeploy your application.

You can install [the package from nuget](https://www.nuget.org/packages/StackifyHttpModule/) and then be sure to redeploy your app with the new dll and updated web.config.

```
PM> Install-Package StackifyHttpModule
```

You will then need to manually modify your web.config file to add the module under "system.webServer".

```xml
<system.webServer>
  <modules>
    <add name="StackifyHttpModule" type="StackifyHttpTracer.StackifyHttpModule,StackifyHttpTracer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=93c44ce23f2048dd" />
  </modules>
</system.webServer>
```

Redeploy your application and now Retrace's ASP.NET monitoring will work correctly with your shared IIS configuration.
