Elmah on a WebServer

Posted by Subbarao on Stack Overflow See other posts from Stack Overflow or by Subbarao
Published on 2010-06-18T15:44:27Z Indexed on 2010/06/18 15:53 UTC
Read the original article Hit count: 492

Filed under:
|

I Setup Elmah to work on a website. It works fine on my local machine but when I moved it to a web server I get this exception

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section elmah/security.

Source Error:

Line 110:  </connectionStrings>
Line 111:  <elmah>
Line 112:  <security allowRemoteAccess="1" />
Line 113:    <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="CadaretGrantConnectionString"/>
Line 114:    <!-- Don't log 404 -->

It shows me a error at Line 112. What should be done in order to get Elmah to work with remote access?

Below is my configuration

<elmah>
<security allowRemoteAccess="1" />
    <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ConnectionString"/>
    <!-- Don't log 404 -->
    <errorFilter>
      <test>
        <equal binding="HttpStatusCode" value="404" valueType="Int32"/>
      </test>
    </errorFilter>

</elmah>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about elmah