title: WebDAV and WebAPI together cause Error: Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list
body: <p>I have both WebDAV installed and running on my site, as a virtual sub site i have a MVC WebAPI site, the API works great, until I try to send a PUT request to it, then i get the below error:</p>
  
  <p><strong>HTTP Error 500.21 - Internal Server Error</strong></p>
  
  <p><strong>Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list</strong></p>
  
  <p>If I disable WebDAV, then everything works fine and I get no errors. This only happens when WebDAV is enabled.</p>
  
  <p>I have all of the following code in my web.config:</p>
  
  <pre><code>&lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration="false" /&gt;
    &lt;modules runAllManagedModulesForAllRequests="false"&gt;
      &lt;remove name="WebDAVModule" /&gt;
    &lt;/modules&gt;
    &lt;handlers&gt;
      &lt;remove name="WebDAV" /&gt;
      &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /&gt;
      &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /&gt;
      &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
      &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /&gt;
      &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /&gt;
      &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /&gt;
    &lt;/handlers&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>I've tried messing with various app pools.</p>
  
  <p>I've also tired all of the things mentioned in all of these questions:</p>
  
  <p><a href="https://stackoverflow.com/questions/8659862/how-to-get-rid-of-this-error-handler-pagehandlerfactory-integrated-has-a-bad-m">How to get rid of this error Handler &quot;PageHandlerFactory-Integrated&quot; has a bad module &quot;ManagedPipelineHandler&quot; in its module list</a></p>
  
  <p><a href="https://stackoverflow.com/questions/13162545/handler-extensionlessurlhandler-integrated-4-0-has-a-bad-module-managedpipeli">Handler &quot;ExtensionlessUrlHandler-Integrated-4.0&quot; has a bad module &quot;ManagedPipelineHandler&quot; in its module list</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6846544/how-to-fix-handler-pagehandlerfactory-integrated-has-a-bad-module-managedpip">How to fix: Handler &quot;PageHandlerFactory-Integrated&quot; has a bad module &quot;ManagedPipelineHandler&quot; in its module list</a></p>
  
  <p>None of this has solved my issue, is there anything else out there that I have not tried?</p>