IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
PREREQUISITES: Your Microsoft SQL Server must be version 2000 or above.
NOTE: ELMAH on SQL Server package is version 1.2. It has a dependency to the ELMAH package, which must be version 1.2 or above. You can also install the ELMAH NuGet package, version 1.2.2, from the NuGet repository.
Make sure the elmah section group is added inside the <configSections> tag in the web.config file. If not, add the section group manually:
<
sectionGroup
name
=
"elmah"
>
section
"errorLog"
requirePermission
"false"
type
"Elmah.ErrorLogSectionHandler, Elmah"
/>
"security"
"Elmah.SecuritySectionHandler, Elmah"
"errorMail"
"Elmah.ErrorMailSectionHandler, Elmah"
"errorFilter"
"Elmah.ErrorFilterSectionHandler, Elmah"
</
NOTE: Мake sure the Elmah.dll fileis loaded in the bin folder of your Sitefinity CMS web application.
NOTE: You can find the script in the ELMAH GitHub repository.
connectionStrings
<!-- TODO: Replace the ****'s with the correct entries -->
add
"elmah-sqlserver"
connectionString
"Data Source=****;User ID=****;Password=****;Initial Catalog=****;"
providerName
"System.Data.SqlClient"
Replace the asterisks with the correct settings for the new database that you created for ELMAH.
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
If you do not have a real SMTP server, you can download the open source smtp4dev and configure it to listen on port 26. To do this, in your web.config file, after the <configSections> tag, add the following:
system.net
mailSettings
smtp
deliveryMethod
"Network"
network
host
"localhost"
port
"26"
elmah
errorMail
from
"testemail@domain.com"
to
"youremail@domain.com"
async
"true"
useSsl
"Elmah"
verb
"POST,GET,HEAD"
path
"elmah.axd"
"Elmah.ErrorLogPageFactory, Elmah"
NOTE: When the ELMAH logging is turned off, the standard logging is working and you can see all the logging information in App_Data/Sitefinity/Logs. When you select the IsElmahLoggingTurnedOn checkbox, all logging information is transferred to ELMAH.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important