We created a simple IHttpModule for our SharePoint deployment that catches exceptions and sends content to developers using the following reason:
public class ExceptionReporter : IHttpModule
{
public void Init(HttpApplication context)
{
context.Error += new EventHandler(context_Error);
}
void context_Error(object sender, EventArgs e)
{
}
}
When trying to deploy it βproperlyβ, we use SPWebConfigModification to add this type to httpModules > node. configurations.
, < add/ > < htpModules > Microsoft.SharePoint.ApplicationRuntime.SPRequestModule, , . , web.config, SPRequestModule Reflector SPRequestModule.
web.config SPRequestModule?