Hello and Good Afternoon,
I am very new to Elmah, but I certainly like what I see! At the moment, and the last couple of days, I seemed to be stuck on a very simple issue. I have downloaded the Elmah_TestHarness solution and that works great! Then I have created a new web app and added references to Elmah and I have made sure the config file is the exact same as what is in the example. In my web app, the errors are logged to the Event Viewer, but not logged in Sql Server. I can copy my web.config file and the other source code here, but it is the same as what is in the example. I was just wondering if anyone out there would have a solution to my problem. I think I have been looking at this too long myself and need a fresh perspective!
Thanks much in advance!
| <system.webServer> |
| <validation validateIntegratedModeConfiguration="false" /> |
| <modules> |
| <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" /> |
| <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" /> |
| <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" /> |
| <add name="ErrorTweet" type="Elmah.ErrorTweetModule, Elmah" preCondition="managedHandler" /> |
| </modules> |
| </system.webServer>
But given you are using VS2012, you might find life much, much easier if you use the nuget packages. There's one for SQL Server that will fill out most of what you need without any fuss!! Cheers, James |