ELMAH Web service

Concept

The idea behind the ELMAH Web service (which is only used by the agents) is to ensure that you don’t have to change permissions on the database every time a new agent is configured.
Right after the agent picked up the xml file with the error, the web service is targeted to save the error to the database. Before the error is saved the error will be parsed by the Intelligent Error Filter.

Installation

  • Download and extract OrbitOne.Elmah.WebService.zip from the downloads section and extract to c:\inetpub\wwwroot\elmahservice
  • create an ApplicationPool in IIS:
  • Open the IIS manager (%SystemRoot%\system32\inetsrv\InetMgr.exe)
  • Right click Application Pools under your computer / server and select Add Application Pool
  • Fill in the following
elmah_webservice_AddApplicationPool.png
  • Go into the Advanced Settings
  • Change the following settings:
elmah_webservice_ConfigureApplicationPool.png
  • Click on the ellips (...) and Set a new Identity. The Identity should have access to the Database
  • create a new web site in IIS
elmah_webinterface_createWebsite.PNG
  • fill out the add website dialog as below but change the physical path and the sitename to elmahservice and select the correct application pool
elmah_webinterface_addWebsiteDialog.PNG

Configuration

ConfigSections

<section name="OrbitOneElmahConfiguration" type="OrbitOne.Elmah.WebService.OrbitOneElmahConfiguration, OrbitOne.Elmah.WebService"/>
<OrbitOneElmahConfiguration HeartbeatInterval="30000"/>

ConnectionString

<add name="OrbitOne_ElmahConnectionString"     
	connectionString="Data Source=DatabaseServer;Initial Catalog=OrbitOne_Elmah;Integrated Security=True"    
	providerName="System.Data.SqlClient" />
  • DataSource: the server on which the database resides.

Last edited Nov 3, 2009 at 10:33 AM by wdeconinck, version 2

Comments

No comments yet.