Prefix: Configure IIS Express

To work properly, Prefix requires an HTTP module. Visual Studio 2015 with IIS Express and IIS classic mode requires manually configuring it.

IIS in Classic (IIS6) mode

If you are getting a message that says you need to install the module and your app is running in IIS with the application pool set to classic mode, please review this document: Install Stackify Module For Classic IIS App Pools

Visual Studio 2015 + IIS Express

Unfortunately, Visual Studio 2015 does not use a global config by default and you need to enable our module manually in each app.

To enable the Stackify HTTP Module, please do one of the following:

Option 1:

Edit your csproj file to force IIS Express to use the global applicationHost.config which will already have the Stackify module registered in it.

<UseGlobalApplicationHostFile>True</UseGlobalApplicationHostFile>

Option 2:

Add our HTTP module to the applicationHost.config for your solution/project located in “.vsconfigapplicationHost.config” as shown below. Add it under system.webServer modules, not to be confused with globalModules which is different.

Option 3:

Add our HTTP module as a reference to your project and configure it on your web.config file. It is safe to deploy the module with your app. It doesn’t do anything on servers where Stackify Prefix or APM is not present. Be sure to include the <remove> part of the config in case your app gets used on your PC or a server which has the module installed in IIS.

Install our package via nuget:

PM>Install-Package StackifyHttpModule

The package will add the module as a reference to your project. Make sure your web.config is modified to include our module. It should look something like what is shown below: