Questions tagged [elmah]

ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility for ASP.NET that is completely pluggable.

ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment.

To learn more about ELMAH, see the MSDN article “Using HTTP Modules and Handlers to Create Pluggable ASP.NET Components” by Scott Mitchell and Atif Aziz.

Installing ELMAH can most easily be done using its NuGet package:

Install-Package elmah
968 questions
0
votes
1 answer

Don't log handled exceptions with ELMAH

I am working with WebApi and ELMAH and I would like to be able to wrap some business errors into web responses for some thypes of exceptions(no logging) and have the others logged by ELMAH. Right no I have this piece of code. public async override…
Bogdan Beda
  • 758
  • 5
  • 12
0
votes
1 answer

How to modify subject of Elmah emailing when using WebApi

Normally in my Mvc project, I simply have a ErrorMail_Mailing method in Global.asax.cs which gives access to ErrorMailEventArgs. But in WebApi, this method does not fire, so how can I access this information in Webapi? I am currently using this…
williamsandonz
  • 15,864
  • 23
  • 100
  • 186
0
votes
0 answers

ELMAH does not log errors to SQL Server on production server

Elmah works perfectly fine on my local web personal web server. However, it does not log any error to the same SQL Server on the production server even though I'm connecting to the same SQL server. When I access the elmah.axd, it shows the page fine…
2myCharlie
  • 1,587
  • 2
  • 21
  • 35
0
votes
3 answers

Required dependency of type Elmah.Mvc.ElmahController could not be resolved

Elmah is logging errors properly to my database but I can't get to /elmah. What am I missing? This was working without ever implementing a controller for Elmah, but now it's not working. This is following a git merge. All configuration has been…
joeldow
  • 1,048
  • 1
  • 9
  • 19
0
votes
0 answers

where and what is the error?

Site is running .NET 4.5, with VB. Uses SQLServer and ELMAH. I use VWD 2012. Production site works fine, but local development site crashes with error: "The specified string is not in the form required for an e-mail address." when trying to load a…
WebEngineer
  • 21
  • 1
  • 3
0
votes
1 answer

Accessing Elmah.axd with SqlErrorLog in SharePoint without adding user to db

I have installed/configured Elmah on my personal SharePoint dev environment and everything works great since I'm logged in as admin, etc. I am using the MS Sql Server Error Log. (I am also using log4net to handle DEBUG/INFO/etc level logging and…
Chloraphil
  • 2,719
  • 7
  • 35
  • 44
0
votes
2 answers

how to secure elmah.axd if I am not using ASP.NET Membership

I am using Elmah as error logging system in asp.net web form project. But in elmah any one can read error log by pasting /elmah.axd in the url And I can not check authorization because I am not using ASP.NET Membership.
Venom
  • 1,076
  • 1
  • 11
  • 23
0
votes
2 answers

Difference between Elmah and Elmah.Contrib.WebApi

I am confused between Elmah and Elmah.Contrib.WebApi. And which one is best option for Web API. Iam already using Nlog for exception logging along with Tracing in Web API. So How Elmah is different from all of them. What is the exact need to going…
Kokirala Sudheer
  • 429
  • 2
  • 8
  • 20
0
votes
1 answer

Elmah not all errors appear in the interface

Even though I have all the errors in MongoDb, I am not able to see them all in the list. I am able though to access a specific error by ID (localhost/elmah.axd/detail?id=...) The message on the top of the page "Errors 1 to 15 of total ..." is also…
0
votes
2 answers

mvc3 Elmah user identity name issue

I am using Elmah for MVC and have secured it successfully but the issue i am having is that it won't show the log for the authorized user for instance this is my web.config for Elmah
user1949387
  • 1,245
  • 3
  • 21
  • 38
0
votes
0 answers

How to customize Error title in Elmah?

I want that at the "Error title" in Elmah there is no the full error stack Trace, as shown in the figure: In the error title and error Detail on the same information. takes too much space. Is there any way to edit this setting? Names of this zones…
Geray Suinov
  • 3,521
  • 3
  • 16
  • 19
0
votes
1 answer

Logging to different folders with Elmah

We have a Webservice that has been logging Elmah errors as XML files into a folder. This webservice application has pure ASMX webservices and ASPX webservices. We now have a requirement to log these errors to different folders based on whether the…
Ajit Goel
  • 4,180
  • 7
  • 59
  • 107
0
votes
1 answer

Where is the section handler of Elmah

In the web.config, there is the declare of the Elmah section.
This means that the class of Elmah.SecuritySectionHandler will handle the section…
Robin Sun
  • 1,352
  • 3
  • 20
  • 45
0
votes
0 answers

elmah.axd System.NotImplementedException

local works very well. Push it to server. it can store errors and email. but can't display elmah.axd. Always get error like below System.NotImplementedException: The method or operation is not implemented. web.config is like below
Mike Long
  • 363
  • 4
  • 16
0
votes
1 answer

Configure Elmah to use existing stored procedure/tables

We have a system that already has a table and some stored procedures used for logging (Oracle). I am currently working on another system which is going to use the same database, but does not have a system for logging errors yet. I read that Elmah…
erikric
  • 4,049
  • 8
  • 32
  • 44