After adding the module to the Web.config in ASP.MVC:

<httpModules> <add name="AuthHttpModule" type="WebUI.Global.Auth.AuthHttpModule" /> </httpModules> 

out message:

HTTP Error 500.22 - Internal Server Error

    1 answer 1

    add this code to web.config

     <configuration> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> </system.webServer> </configuration> 

    Read more: HTTP Error 500.22