In IIS 7, I am trying to use a custom HttpHandler for my ASP.NET web application. I use the "classic" pipeline mode, version .NET 4.0.30319, my web.config configuration for the handler:
<system.webServer> <handlers> <add name="MyHandler" path="*.myExtension" verb="*" type="Company.App.UI.Controls.MyHandler, Company.App.UI" resourceType="Unspecified" /> </handlers> </system.webServer>
When I call this handler, I get this error:
HTTP Error 500.21 - Internal Server Error Handler "MyHandler" has a bad module "ManagedPipelineHandler" in its module list
I did a Google search, most people fixed this problem by re-registering ASP.NET with the aspnet_regiis.exe / i command, but this is not for me (the command completes, I restart IIS, but the same error). I tried this on two different servers, but got the same result.
What else should I try? Thanks you
Mikee Aug 22 2018-12-12T00: 00Z
source share