Note that there are some explanatory texts on larger screens.

plurals
  1. POELMAH not logging in ASP.NET MVC 2
    primarykey
    data
    text
    <p>I cannot figure out what I'm doing wrong here, trying to use ELMAH in my MVC 2 application and it doesnt log anything, ever.</p> <p>Here's what I have in my web.config (relevant parts)</p> <pre><code>&lt;sectionGroup name="elmah"&gt; &lt;section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /&gt; &lt;section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /&gt; &lt;section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" /&gt; &lt;section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" /&gt; &lt;/sectionGroup&gt; &lt;elmah&gt; &lt;security allowRemoteAccess="0" /&gt; &lt;errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ELMAH.SqlServer" /&gt; &lt;!-- &lt;errorMail from="youremail@example.com" to="youremail@example.com" cc="" subject="Elmah Error" async="true" smtpPort="25" smtpServer="[EmailServerName]" userName="" password="" /&gt; &lt;errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" /&gt; --&gt; &lt;/elmah&gt; &lt;connectionStrings&gt; ... &lt;add name="ELMAH.SqlServer" connectionString="data source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ELMAH_Logging.mdf;Integrated Security=SSPI;Connect Timeout=30;User Instance=True;" providerName="System.Data.SqlClient"/&gt; &lt;/connectionStrings&gt; &lt;system.Web&gt; &lt;httpHandlers&gt; &lt;add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" /&gt; ... &lt;/httpHandlers&gt; &lt;httpModules&gt; &lt;add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" /&gt; &lt;add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" /&gt; &lt;add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" /&gt; ... &lt;/httpModules&gt; &lt;/system.Web&gt; &lt;system.webServer&gt; &lt;validation validateIntegratedModeConfiguration="false" /&gt; &lt;modules runAllManagedModulesForAllRequests="true"&gt; &lt;add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" /&gt; &lt;add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" /&gt; &lt;add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" /&gt; &lt;/modules&gt; &lt;handlers&gt; &lt;add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/&gt; ... &lt;/handlers&gt; &lt;/system.webServer&gt; </code></pre> <p>Then using the code from <a href="http://dotnetdarren.wordpress.com/2010/07/27/logging-on-mvc-part-1/" rel="nofollow">DotNetDarren.com</a> but no matter what I do no exceptions are ever logged?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload