ELMAH with IIS6.0 and SQL Server 2005

Posted by RajeshT on Stack Overflow See other posts from Stack Overflow or by RajeshT
Published on 2010-04-20T21:59:45Z Indexed on 2010/04/20 22:03 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

On production I have ELMAH configured so that the errors are logged into a SQL Server 2005 database created specially for ELMAH. The sites run on IIS6.0 web server.

ELMAH is able to send emails for the errors, but nothing is getting logged into the SQL Server database. The connection is a trusted connection and I have

<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/> in section group
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="Elmah.Sql" applicationName="VBCPortal"/> under elmah

<add name="Elmah.Sql" connectionString="Data Source=(local);Initial Catalog=ELMAH;Trusted_Connection=True" /> in connectionStrings

in my web.config file.

Any idea why the errors are not getting logged into the database?

© Stack Overflow or respective owner

Related posts about elmah

Related posts about sql