Published on

Installing ELMAH with Sitefinity

Authors

ELMAH: Error Logging Modules and Handlers for ASP.NET is a pretty awesome error logger.  I’ve installed it on a couple sitefinity instances so I figured I’d blog about it to help some others with it.

If you’ve never seen it, here are a couple resources:

  1. Scott Hanselman
  2. Detailed Setup Document

It’s an HttpModule which intercepts all crashes and logs them to a single table in your database, then provides a nice simple interface (and rss feed) to see the log items.

STEP 1

Web.Config Updates

STEP 2

SQL Script to create the table (included in the download file in the db folder)

STEP 3

Copy the Assemblies to your bin folder (ignore the SqlLite and VistaDB dlls)

Now you can visit https://www.yoursite.com/Sitefinity/elmah.axd, log in, and hopefully see no errors ;)