Creating HTTP Module for Exception handling.

HTTPModules are called on every HTTP request made to an application. It works Once you have placed a HTTPModuel in you application, all the request are passed through the HTTPModule which can be further used to intercept, modify each Http request.ASP.NET uses modules to implement various application features, which includes forms authentication, caching, session state, and client script services. HTTP modules are much similar like Global.asax however HTTP Module has an advantage over Global.asax in terms of reusability. It can be created one time and used in many different applications by adding it in Machine.config or GAC(Global Assembly Cache).