---
title: "500.21 Bad module “ManagedPipelineHandler” in its module list"  
description: "500.21 Bad module “ManagedPipelineHandler” in its module list"  
author: "Anonymous User"  
published: 2015-10-31  
updated: 2015-10-31  
canonical: https://www.mindstick.com/forum/33553/500-21-bad-module-managedpipelinehandler-in-its-module-list  
category: "iis 7"  
tags: ["asp.net", "iis 7", "iis"]  
reading_time: 2 minutes  

---

# 500.21 Bad module “ManagedPipelineHandler” in its module list

I [am getting](https://www.mindstick.com/forum/34179/i-am-getting-error-while-assigning-the-data-to-the-array-list) the error:[HTTP Error](https://www.mindstick.com/forum/33552/error-code-0x80070021-and-http-error-500-19) 500.21 - [Internal Server Error](https://www.mindstick.com/forum/159408/an-api-request-returns-a-500-internal-server-error-how-to-fix-this-error) Handler "CloudConnectHandler" has a bad module "ManagedPipelineHandler" in its module list\
\
my [web.config](https://www.mindstick.com/forum/183/web-config-file) file looks like this:

```
<?xml version="1.0" encoding="utf-8"?><configuration>  <system.webServer>    <handlers>      <add name="CloudConnectHandler" verb="*" path="CloudConnect.aspx" type="CloudConnectHandler" resourceType="Unspecified" />    </handlers>  </system.webServer>  <system.web>    <customErrors mode="Off" />    <compilation debug="true" targetFramework="4.0" batch="false">      <assemblies>        <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />        <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />        <add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />      </assemblies>    </compilation>    <pages>      <controls>        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />      </controls>    </pages>        <identity impersonate="true" />        <authentication mode="Forms" />  </system.web>  <system.codedom>    <compilers>      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">        <providerOption name="CompilerVersion" value="v4.0" />        <providerOption name="WarnAsError" value="false" />      </compiler>    </compilers>  </system.codedom>  <appSettings>    <add key="CloudConnectAuthorization" value="xxxx" />    <add key="ConnectionInfo" value="xxxx" />    <add key="ConnectionString" value="xxxx" />    <add key="DefaultChannel" value="xxxx" />    <add key="LoginValidationConnectionString" value="xxxx" />  </appSettings>  <runtime>    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">      <dependentAssembly>        <assemblyIdentity name="protobuf-net" publicKeyToken="257b51d87d2e4d67" culture="neutral" />        <bindingRedirect oldVersion="0.0.0.0-2.0.0.640" newVersion="2.0.0.640" />      </dependentAssembly>    </assemblyBinding>  </runtime></configuration>
```

\
There is a lot of advice out there indicating that asp.net is not installed correctly. The usual fix is to run:\

```
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i
```

or

```
%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -i
```

I have run both, without any errors. I have restarted IIS, but the problem still persists. The site is using an [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) pool. The app pool is started, .[net framework](https://www.mindstick.com/forum/158573/describe-the-purpose-and-usage-of-the-common-type-system-cts-in-the-dot-net-framework) = 4.0, Managed [Pipeline](https://yourviews.mindstick.com/view/83647/building-a-successful-organic-traffic-pipeline-in-5-easy-steps) = Classic, [Identity](https://www.mindstick.com/articles/13090/icon-the-identity-of-your-brand) = LocalSystem.\
I've spent the last couple hours trying to figure out what the problem is. I'm hoping someone can help.

## Replies

### Reply by Anonymous User

Try switching to Integrated mode.\
Please follow these steps:1) Run the command prompt as administrator.2) Type either of the two lines below in the command prompt:\

```
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
```

or

```
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i
```


---

Original Source: https://www.mindstick.com/forum/33553/500-21-bad-module-managedpipelinehandler-in-its-module-list

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
