Never wonder about unhandled ASP.NET exceptions again

Sigh.net is a provider based unhandled exception handler for ASP.NET 2.0 and higher applications. Used by developers or system administrators, sigh.net monitors ASP.NET applications for unhandled exceptions and sends detailed information to one or more configured providers. There is no code to change and no code to add to your application; you don't even have to rebuild you application. Just drop the sigh.net assembly into your web application's bin directory and configure it with the web.config file. Any unhandled exceptions thrown by your application will be trapped by sigh.net and forwarded to the configured providers.

It's provider based

There are two providers available for sigh.net, though the provider model offers a great deal of extensibility.
  • SMTP Email
  • Sql Server Table (under development)

Sample web.config Setting:

The example below illustrates how simple it is to configure sigh.net to monitor your unhandled ASP.NET exceptions. This is all done without adding or modifying a single line of code in your application.
<?xml version="1.0"?>
<configuration>
	<configSections>
		<sectionGroup name="unhandledHttpException">
			<section name="httpExceptionProviders" type="Sigh.HttpExceptionConfiguration, Sigh" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />
			<section name="emailProviderConfiguration" type="Sigh.Providers.EmailProviderConfiguration, Sigh" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />
			<section name="sqlDatabaseProviderConfiguration" type="Sigh.Providers.SqlDatabaseProviderConfiguration, Sigh" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />
		</sectionGroup>
	</configSections>
	<connectionStrings>
		<add name="Default" providerName="System.Data.SqlClient" connectionString="YOUR CONNECTION STRING"/>
	</connectionStrings>
	<unhandledHttpException>
		<httpExceptionProviders DefaultProvider="EmailProvider" EnableMulticast="true" Enabled="true">
			<providers>
				<clear />
				<add name="EmailProvider" type="Sigh.Providers.EmailProvider, Sigh" />
				<add name="SqlDatabaseProvider" type="Sigh.Providers.SqlDatabaseProvider, Sigh" />
			</providers>
		</httpExceptionProviders>
		<emailProviderConfiguration FromAddress="ohhai@someaddress.com" ToAddresses="ohhai@someaddress.com" Subject="The subject of your email goes here!" EnableSsl="false" Enabled="true" />
		<sqlDatabaseProviderConfiguration ConnectionStringName="Default" Enabled="true" />
	</unhandledHttpException>
	<system.net>
		<mailSettings>
			<smtp deliveryMethod="Network">
				<network host="YOUR SMTP SERVER" port="80" userName="ohhai@someaddress.com" password="SMTP PASSWORD HERE" />
			</smtp>
		</mailSettings>
	</system.net>
	<system.web>
		<httpModules>
			<add name="HttpExceptionModule" type="Sigh.HttpExceptionModule, Sigh"/>
		</httpModules>
	</system.web>
</configuration>

Last edited Mar 17 2008 at 3:37 AM by Abusement, version 10

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987