This project is read-only.

Enabling ELMAH - Taffy Error Reporting

ELMAH (Error Logging Modules and Handlers) is a logging component shipped with Taffy. It's disabled by default, and it can be enabled at any time to assist with troubleshooting. When properly enabled, ELMAH won't affect the way Taffy operates -- it just gives you more information when something goes wrong.

To enable ELMAH in Taffy, you uncomment some lines from Taffy's web.config file. To uncomment a line in a web.config file, you remove the "<!--" characters from the front of the line and the "-->" characters from the end of the line.


If you're running IIS6, uncomment only one line:
  1. <!--<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />-->


If you're running IIS7, you uncomment three lines (the third line is a bit farther down the file than the first two):
  1. <!--<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />-->
  2. <!--<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />-->
  3. <!--<add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />-->

Also, if you're running Windows 7, Taffy might show the following error message after you enable ELMAH:

Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Jonathan Lawson provided a solution to the AspNetHostingPermission error. You change an Application Pool setting: change the "Load User Profile" advanced setting to True.

Last edited Feb 3, 2010 at 4:59 AM by lancehilliard, version 5


No comments yet.