Setup: Custom authentication module: 500 – Internal server error



When I test my custom authentication module with WorkflowGen I get this error:

500 Internal server error.
There is a problem with the resource you are looking for, and it cannot be


Please find below the right web.config settings according to your configuration:

Case 1: IIS 7.0+ and App Pool is in “Integrated pipeline” mode

 <add name="MyAuthModuleName" type=" MyAuthModuleName.MyModule, MyAuthModuleName "/>  
Case 2: IIS 5.0, IIS 6.0 and (IIS 7.0+ and the App Pool is in "Classic pipeline" mode)