Are you running your application in Integrated mode? If so, you have to add your http module to the system.webServer/modules configuration section, rather than system.web/httpModules
<configuration>
<system.webServer>
<modules>
<add name="ErrorModule" type="ErrorModule, ErrorModule"/>
</modules>
</system.webServer>
</configuration>