Skip to content

Configuration

Davide Benvegnù edited this page Nov 14, 2019 · 10 revisions

#HttpModule Configuration

BugGuardian.WebForms provides two different HttpModules to automatically intercept unhandled exception:

  • BugGuardianBugModule: it reports the unhandled exception as Bug
  • BugGuardianTaskModule: it reports the unhandled exception as Task

All you have to do to use a module is to add the following line to your web.config file within the modules subsection of the system.webServer section:

<add type="DBTek.BugGuardian.WebForms.Modules.BugGuardianBugModule, DBTek.BugGuardian.WebForms" name="BugGuardianBugModule" />

Of course, if you want the unhandled exception to be reported like a Task work item instead of a Bug work item, just register the second HttpModule:

<add type="DBTek.BugGuardian.WebForms.Modules.BugGuardianTaskModule, DBTek.BugGuardian.WebForms" name="BugGuardianTaskModule" />

The final modules subsection of the system.webServer section of your web.config file will probably look like this:

<system.webServer>
    [...]
    <modules>
        [...]           
        <add type="DBTek.BugGuardian.WebForms.Modules.BugGuardianBugModule, DBTek.BugGuardian.WebForms" name="BugGuardianBugModule" />
        <!--<add type="DBTek.BugGuardian.WebForms.Modules.BugGuardianTaskModule, DBTek.BugGuardian.WebForms" name="BugGuardianTaskModule" />-->
		[...]
    </modules>
	[...]
</system.webServer>

Visit also the Parameters Configuration page to know how to proper set-up the needed parameters in the Web.config file

Clone this wiki locally