Questions tagged [elmah]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
36 views

Why isn't my Elmah configuration being applied?

I've inherited a legacy internal site written using ASP.NET MVC. It uses Elmah to mail uncaught exceptions. Unfortunately, those emails contain sensitive information, such as passwords. Following this ...
Scott Severance's user avatar
2 votes
1 answer
268 views

How to configure ASP.NET Core to use ElmahLoggerProvider in ElmahCore for ILogger<T> implementations

I'm trying to use ElmahCore with an ASP.NET Razor pages application. I am purposefully throwing an exception in one of the pages to test out the error handling. Desired Behavior Log the error to ...
Greg Burghardt's user avatar
0 votes
0 answers
17 views

Sending mails from ELMAH not throw the mailSettings in the web.config

I'm using ELMAH (1.2.13605.2128) for error control on my asp.net websites. This is working fine with the standard mail settings in the web.config: <system.net> <mailSettings> <smtp ...
Kᴀτᴢ's user avatar
  • 2,156
0 votes
0 answers
29 views

is it possible to view elmah error log in two projects with one authentication in ASP.NET MVC?

I have two projects, one is web with a login page, the other is my API project which is used for routing. I installed Elmah package in both projects and enabled authentication, so both projects errors ...
R praveen's user avatar
-1 votes
1 answer
137 views

Log without HttpContext in ElmahCore

I'm using ElmahCore in an ASP.net Core applicaiton, in the docs I can see you can log manually using an extension method for the HttpContext, but I can't find anywhere how to log an error manually ...
buga's user avatar
  • 882
0 votes
0 answers
32 views

Elmah Generates Error Request did not match any endpoints

Why is my console reporting this error in relation to Elmah [10:32:49 INF] Request starting HTTP/2 GET https://localhost:7298/elmah/api/new-errors ?id=...
ΩmegaMan's user avatar
  • 29.9k
0 votes
0 answers
28 views

ELMAH: Restrict number of Emails

Is there anyway to restrict the number of ELMAH emails being sent with the same error? IE – check each ELMAH error, and if the same error has already been emailed in last x seconds, then don’t send ...
Lucy's user avatar
  • 3
0 votes
1 answer
52 views

elmah.axd custom exception message with stacktrace of child throwed exception in C#

What I want to achieve is to show a custom exception Type and Error message in elmah.axd table but with the original stacktrace of a child throwed exception. This is just an example of a nested try ...
sTx's user avatar
  • 1,221
0 votes
1 answer
235 views

How to get Elmah working with .Net 6 F# Web Api Project

I've used Elmah before in a C# project years ago and I have recently started using F# and having a bit of trouble. I have a .Net 6 Web Api project from This Post I see the key code is: services....
Martin Thompson's user avatar
2 votes
2 answers
158 views

Elmah logger not working in Web API with Simple Injector

In an ASP.NET Web API project, if you are using Simple Injector for dependency injection, it will register all controllers with this line of code: container.RegisterWebApiControllers( System.Web....
CodingYoshi's user avatar
  • 25.8k
0 votes
0 answers
1k views

How do I fix NU1701?

Warning NU1701 Package 'elmah.corelibrary 1.2.2' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, ....
cherrypye_'s user avatar
0 votes
0 answers
194 views

How to secure ElmahCore Errprs Dashboard page on ASP.NET CORE API end

I have ASP.NET Core API that is being consumed by an Angular app. Now I have implemented ElmahCore error logging API that shows all errors of Backend API on the URL: www.myAPI.com/elmah This URL is ...
Ashran Haider's user avatar
0 votes
1 answer
105 views

How to turn off automatic Elmah logging?

I'd like to disable automatic exception logging in Elmah, while leaving manual logging enabled, e.g. ErrorSignal.FromCurrentContext.Raise(ex) My situation is nearly identical to this one, with the ...
InteXX's user avatar
  • 6,137
2 votes
0 answers
535 views

Vs2019 ,netcore api, can't get elmahcore working

I have a .netcore vs2019 webapi, with okta security set up and running. I wanted to add elmah support, in particular the emails sent on errors. I can't get it working. I figure it has to be something ...
Eric Brown - Cal's user avatar
0 votes
2 answers
71 views

Manually adding Elmah & ApplicationInsights in .csproj file

I created a multi-project template and connected it with a wizard. Everything is working fine, and I can restore packages using update-package -reinstall in the package console manager. I'm trying to ...
Wild's user avatar
  • 1
-1 votes
1 answer
224 views

ELMAH Logs Retention

I am working with error logging using ELMAH and I succeeded plugging ELMAH in our application in local. I have followed the steps mentioned here Logging Error Details with ELMAH (C#). I have some ...
Naori Kuni's user avatar
0 votes
1 answer
106 views

When navigating to "/elmah.axd" it throws a 'Root Element is missing' error

Posting this to resolve a question I couldn't find an answer to elsewhere. I'm running "elmah" for error logging in a legacy .NET framework project. It works fine in all of my testing / ...
Lovethenakedgun's user avatar
1 vote
2 answers
556 views

How can I get the connection string from configuration in the InjectsAuthElements methods in Startup.cs

I am trying to configure elmah with sql server. The configuration I see are of this form public class Startup { public void ConfigureServices(IServiceCollection services) { ... } ...
Ant's user avatar
  • 277
0 votes
0 answers
88 views

Elmah logs hundreds of files

Learned error logging from this and using this . But Elmah logs one file to each error, and we end up with hundreds of hundreds of XML files. How can I set it up to log an entire day to one XML file? ...
brgsousa's user avatar
  • 333
0 votes
0 answers
36 views

Does any runtime scanning exist with ASP.NET Core (not covered by unit tests), to prepopulate ELMAH?

I'm a solo developer who has a big ASP Core site acting as a complex blog mind map. I need help with creating a basics checklist and a way to ensure that everything is running, aside from unit tests. ...
TLDR's user avatar
  • 1,228
1 vote
0 answers
87 views

Elmahcore max number of logs

Is it possible specify the maximum number of logs in ElmahCore in ConfigureServices? If so, how? I have the following in ConfigureServices : services.AddElmah() If it not possible to set via ...
Simon H's user avatar
  • 507
-1 votes
1 answer
106 views

Is there a setting that I can configure ELMAH to automatically track user and CRUD activity?

I am using ELMAH.MVC for error logging but I was wondering if I could also do the same for logging user movement(what pages the user visits, information lookups, etc) and Create, Read, Update, Delete ...
Skullomania's user avatar
  • 2,235
0 votes
1 answer
152 views

ELMAH is not logging to XML files with ASP.NET MVC in docker container

ELMAH works fine in my website running on VS & IIS, but after creating a docker image for the app, XML errorLog doesn't work - actually there is NO xml file created. My code raises exceptions but ...
hazjack's user avatar
  • 1,659
1 vote
2 answers
1k views

Elmah for .NET Core - manually logging

I've got an app that has elmah embedded in it for error logging. That app runs .net framework 4.x and uses a sql server backend. It is hosted up in azure. I am porting the app the .net core and to ...
Wallace B. McClure's user avatar
1 vote
1 answer
301 views

Every time I switch git branches I end up missing DLL references (Elmah)

This is my first time initializing a project and downloading it from a repo from another developer. When I try to inialize it. I am missing references. I have solved some references being missing by ...
Jeffrey Padgett's user avatar
0 votes
1 answer
332 views

Elmah sending error mails with Sendgrid API Keys

Normally I use the SMTP settings in my web.config file with UN/PW to my Sendgrid account to send elmah error emails. But, with two factor authentication I don't believe sendgrid allows sending emails ...
rsnyder's user avatar
  • 383
0 votes
1 answer
270 views

How to configure NLog with Elmah in ASP.NET Core MVC

There is a NLog.Elmah library in the .NET Core version or there is another way to log information in Elmah from a .NET Core application?
adte's user avatar
  • 33
1 vote
1 answer
2k views

Catch Exceptions Globally using ElmahCore in Aspnet core 3.0?

I am using Aspnet core 3.0 and I have configured ElmahCore for exception handling. however from their documentation, they advise to catch exceptions using public IActionResult Test() { HttpContext....
Hamza Khanzada's user avatar
0 votes
1 answer
3k views

Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

error ASPRUNTIME : The pre-application start initialization method Initialize on type Elmah.Mvc.Bootstrap threw an exception with the following error message: Could not load file or assembly 'System....
Raju's user avatar
  • 1
0 votes
1 answer
151 views

Elmah Log Error Timeout cause program to crash

i am having a issue that my program potentially will occur many error(Example: read data from file, if data error occur the data should be recorded). I currently using elmah to log the error into the ...
Raymond's user avatar
  • 15
0 votes
0 answers
251 views

Exception Handling with ELMAH - Inner Exception is NULL

I just recently got put on a project at my company which uses ELMAH in an C# MVC project that uses .NET 4.6.2. I've never used ELMAH before so this question may be dumb but I haven't been able to ...
Dominick's user avatar
  • 424
0 votes
0 answers
319 views

Error Log Profiler for Angular single page UI with Asp.Net Core 2 webApi server side

I am looking for logging and profiling solution for my web api application developed by c# .NetCore web api and Angular ui. I 've read the similar question in stack overflow but that was for about 2 ...
Sayedeh Mahshid Fatemi's user avatar
4 votes
1 answer
210 views

ELMAH - Email not received in production environment

I have integrated ELMAH library for logging the error. I have integrated email code for getting error list but unable to get those errors. Can anyone help me for same. Below is my configuration code ...
ankitkanojia's user avatar
  • 3,082
1 vote
1 answer
373 views

Can i prevent Elmah inside my asp.net mvc-4 web aplication from exposing the users' passwords

When i developed my first asp.net web application, and users receives an exception, i thought that IIS will have a full details about the exception, which was not the case. And i was told that to ...
John John's user avatar
0 votes
1 answer
69 views

Losing USER information in ELMAH when using ADFS

I have an MVC web application using ELMAH to log unhandled exception. I'm now moving from windows authentication to ADFS authentication. The application has been adapted and is working fine. However ...
Maxime Matter's user avatar
0 votes
0 answers
42 views

Errors logged in ELMAH_Error table not showing on elmah.axd page

Need some help figuring out why my instance of Elmah is not showing errors logged in the DB table on the elmah.axd page. It seems like everything is configured correct, including 'applicationName', ...
thiag0's user avatar
  • 2,199
0 votes
0 answers
103 views

A public action method 'subscriber' was not found on controller 'NewsletterController'

I am getting this error as a warning from the elmah error log. Actually I have no method on controller named "subscriber". I have explored this solutions also A public action method '..' was ...
Saurabh Solanki's user avatar
2 votes
1 answer
5k views

How do I configure Elmah with .NET Core to log to SQL?

I've installed the package "ElmahCore" which allowed me to use Elmah in .NET Core. It's set up by: services.AddElmah(); in the startup.cs I want to change it to log to SQL so it's persistent. ...
NibblyPig's user avatar
  • 51.5k
1 vote
1 answer
600 views

Can I send Elmah erros details to ApplicationInsights?

I have an old application which I used Elmah to aggregate exceptions and save data to disk/db. Today, I start using Azure Monitor with Application insights SDK to monitor my services, so that I'm ...
Tester User's user avatar
0 votes
1 answer
230 views

Change server variable values that are logged in Elmah

I configured Elmah in my application and when I looked at the error logs I saw that in the User section Elmah logged an ID instead of the current logged in username a shown below. I was wondering if ...
SP1's user avatar
  • 1,182
0 votes
1 answer
95 views

Use managed service account with ELMAH to send email

Is it possible to use a Windows managed service account to send ELMAH exceptions? Here's a sample errorEmail from Web.config; would it still have a password attribute? <elmah> <errorMail ...
Alex's user avatar
  • 35k
1 vote
1 answer
880 views

How to receive error emails using ElmahCore

I receive error log using elmahcore but I want to receive the errors by email. How do I do that? This is how I receive the errors in database. services.AddElmah<SqlErrorLog>(options => ...
Nakres's user avatar
  • 1,312
0 votes
2 answers
438 views

Logging ELMAH errors to Elasticsearch

How do I add a target to send logs to my Elasticsearch server? Ideally I would like to have two errorLog in my WCF application, where one is sending data to SQL and another one to Elasticsearch. This ...
gjfonte's user avatar
  • 488
2 votes
1 answer
3k views

Config section 'system.web/httpModules' already defined. Sections must only appear once per config file. See the help topic <location> for exceptions

I am aware that there are questions similar to this issue.I am working on a .Net project and it was working fine until yesterday. Today I get to see an error in my config file. Error I got: 'Config ...
Rick's user avatar
  • 1,442
0 votes
1 answer
43 views

Include full url in Elmah Email

Currently I get an error email from ELMAH similar to the following screenshot, which is all good. But one thing that is missing is a full url something similar to what you get from a Request.Url....
Mat J's user avatar
  • 5,462
0 votes
0 answers
35 views

Elmah not seeing database

We are moving to a new production web server and sql server. I have my application up and running, except that Elmah does not log any errors and the elmah.axd file says that there are no entries in ...
Wallace B. McClure's user avatar
1 vote
0 answers
78 views

Elmah on asp .net Webforms generating HTTP 500.19 error

I've got an error on an a server running elmah. I have some security entries that need to be set in the web.config. One of them is a customHeaders entry. The config error is: Cannot add duplicate ...
Wallace B. McClure's user avatar
0 votes
1 answer
641 views

can't access elmah through url

I installed elmah into my application . My application url is localhost:53245/Default.aspx and after adding elmah it will be like this localhost:53245/Default.aspx/elmah.axd. it's not working . it ...
muniya's user avatar
  • 162
1 vote
1 answer
511 views

Elmah not creating the SqlLite tables and stored procedures

I'm using Elmah for logging the unhandled exception in ASP.NET MVC using SqlLite database. When i configure the Elmah with SqlLite database using below <elmah> <!-- See http://code....
Zia Qammar's user avatar
0 votes
1 answer
109 views

Elmah bootstrapper clean logs

I would like to know where does elmah bootstrapper store logs and how can i make a function to delete them. Nothing on the documentation says how to store them or where they are stored.... Thanks.
Jackal's user avatar
  • 3,390

1
2 3 4 5
20