Questions tagged [elmah.mvc]

ELMAH.MVC is a tool to integrate ELMAH into ASP.NET MVC applications.

ELMAH.MVC is for painless integration of into ASP.NET MVC application.

Links:

139 questions
4
votes
2 answers

ASP.NET Web API v2 and logging all errors/exceptions with ELMAH

Despite spending hours searching the net I couldn't find a solution to this problem. Being a noob to Web API v2 this is probably a really easy question for someone with more experience. I have a clean MVC project updated to use Web API v2. I've…
Sulphy
  • 766
  • 2
  • 9
  • 29
4
votes
1 answer

Elmah.MVC setup

I'm trying to get up and running with Elmah for an MVC 5 WebAPI app. All the docs I'm finding seem to start and end with "install it via nuget" and just assume that'll cover it, but I'm clearly missing something. I've installed Elmah.MVC 2.1.1 via…
superstator
  • 3,005
  • 1
  • 33
  • 43
4
votes
1 answer

ASP.NET MVC ELMAH not logging HttpRequestValidationExceptions

I have an ASP.NET MVC site running on .NET 4.0 which I am trying to set up error logging. I discovered the Elmah.MVC NuGet package (v2.1.1, Elmah core: v1.2.1) and followed this tutorial to get it setup. (did not do Step5 - javascript error…
Jake
  • 1,207
  • 2
  • 28
  • 46
4
votes
1 answer

Error trying to get Elmah to manually log messages

I'm using ELMAH in my MVC4 project. I want to manually log messages. According to other SO questions on this subject I do this... using Elmah; and.. Elmah.ErrorSignal.FromCurrentContext().Raise( new Exception("Hello I am testing Elmah", new…
spiderplant0
  • 3,872
  • 12
  • 52
  • 91
4
votes
1 answer

ELMAH.MVC: How to display custom error page?

I am using the latest version of ELMAH.MVC in an ASP.NET MVC4 application. It is logging errors but, I want to display a custom error page. So, I created an ErrorController and ErrorView (see following). What I cannot figure out is how to make…
A Bit of Help
  • 1,368
  • 19
  • 36
3
votes
3 answers

JsonValueProviderFactory: System.ArgumentException: An item with the same key has already been added

I have a webhook api handler for Shopify which calls the below controller action with a json body. It is failing immediately because no log4net logging is being reached and logged except the one in the OnException method with the error…
crichavin
  • 4,672
  • 10
  • 50
  • 95
3
votes
1 answer

Elmah.MVC + NLog - store all errors in one place

I'm working on an ASP.NET MVC 5 app in Visual Studio 2015. We use NLog to write some errors and other information to the database in our try/catch blocks. However, it would be nice to also implement ELMAH.MVC, so that any/all uncaught exceptions get…
Alex
  • 34,699
  • 13
  • 75
  • 158
3
votes
0 answers

Upgrade from Elmah 1.2.2 to Elmah.MVC 2.1.2 Result in "Elmah.ErrorSignal" not found?

Previously i have Elmah 1.2 and this function was working fine Elmah.ErrorSignal.FromCurrentContext().Raise(ex); I decide to upgrade to Elmah.MVC 2.1.2 and below method is not working anymore. Elmah.ErrorSignal.FromCurrentContext().Raise(ex); I…
Kashif Hanif
  • 1,718
  • 2
  • 17
  • 29
3
votes
1 answer

Elmah mvc erases error logs after site restart

I have integrated Elmah.mvc via Nuget in my mvc application. It is storing logs properly but when i do any changes in web.config or restart the site all the error logs stored are erased. Is there a way to preserve its logs permanently in some…
meenu
  • 53
  • 3
3
votes
2 answers

elmah download log is not working

VS2013, MVC5, SQL error logging elmah.corelibrary version 1.2.1 elmah.mvc version 2.1.1 I successfully installed elmah into an MVC5 site using the SQL database logging mechanism. The elmah logging works great on both the dev (local SQLExpress) and…
Alan
  • 1,587
  • 3
  • 23
  • 43
3
votes
3 answers

How to log custom exception with additional Data property to Elmah?

I have a custom exception, where I have overriden the Data property using reflection like the following... public class MyCustomException : Exception { private readonly SomeModel _log; public MyCustomException(SomeModel log) :…
Yasser Shaikh
  • 46,934
  • 46
  • 204
  • 281
3
votes
0 answers

Sending Elmah Mvc error generated Id (ErrorId) to client

I´m using Elmah.MVC on my project. I created that error handler to generate a json response to client : public class OnHandleErrorAttribute : HandleErrorAttribute { public override void OnException(ExceptionContext context) { //…
Paul
  • 12,359
  • 20
  • 64
  • 101
3
votes
1 answer

ELMAH not logging errors except for 404's

I can't get ELMAH to log errors to my AppData folder for any exceptions except for 404 errors. I'm not sure what the problem could be. I'm guessing it's because I have ,…
The Vanilla Thrilla
  • 1,915
  • 10
  • 30
  • 49
3
votes
1 answer

Why does the elmah log return Request timed out on production server?

I have an ASP.NET MVC 4 application with the ELMAH nuGet package installed, hosted on Windows Azure. When i access /elmah on localhost everything works fine, but on the production server i now get Request timed out error. It used to work on the…
Marius Stănescu
  • 3,603
  • 2
  • 35
  • 49
3
votes
1 answer

How to implement machine name in elmah subject line?

I want to carry the machine name in ELMAH subject line. As in developing environment want to keep the track that from which machine error is coming. So I want implement subject line with proper machine name. What I should do?
Anudeep
  • 337
  • 2
  • 4
  • 13
1
2
3
9 10