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
1
vote
1 answer

How to change error message when user is not authorised for elmah?

I do not want to show this error message when use is not authorized / on remote machine. I want to show my custom error message. I am using elmah for error logging. my app setting
Kaushik Thanki
  • 3,334
  • 3
  • 23
  • 50
1
vote
1 answer

How to store Elmah exception information to a web service?

We have been using elmah for some time now and we have a new requirement for the ui dont saving information directly to he database and the manager of the team asked if we can tell elmah to send the exception information to a web service. Does…
Juan
  • 1,352
  • 13
  • 20
1
vote
0 answers

Can Elmah handle an exception thrown before controller action execution?

I'm using Elmah to log exceptions, and have been going nuts due to customers complaining about getting errors, but I don't see any 500s in Elmah's log. The exceptions are occurring inside some attributes on model properties, when the model is being…
MStodd
  • 4,716
  • 3
  • 30
  • 50
1
vote
1 answer

Elmah MVC with WCF Services (using Elmah.MVC 2.1.2)

I have an ASP.NET web application project (using MVC) which i've installed the nuget package Elmah.MVC 2.1.2 on. I have additional class library projects of: contracts and services along with a WCF project. I am trying to capture the exceptions…
Eitan K
  • 837
  • 1
  • 17
  • 39
1
vote
1 answer

How to stop ELMAH form logging the same exception on refresh?

I use ELMAH for my Asp.net MVC project exception logging, I've set it up so it log the exceptions to the database, but my problem is if an exception happen and user refresh the page for whatever reason (maybe thinking that by refreshing the page the…
Deckard
  • 111
  • 12
1
vote
0 answers

Assigning a reference number to exceptions logged using Elmah MVC?

We have an Asp.Net MVC application and are using Elmah for logging and handling unhandled exceptions. There is a new requirement that a reference no. should be provided to the user on 500-Internal Server Error page which the user may report to the…
Adil Khalil
  • 2,073
  • 3
  • 21
  • 33
1
vote
0 answers

SQLite as an Elmah source

I'm trying to get SQLite working with Elmah, but it keeps complaining about the attached version. I've read numerous blogs on the topic but none of the recommended approaches has worked for me thus far. Elmah.MVC has been installed, as the latest…
JadedEric
  • 1,943
  • 2
  • 26
  • 49
1
vote
1 answer

Save Error in Xml File With Elmah

I use elmah for find error . i want to save error in xml file. after i wrote Commands in cinfig file : config file :
1
vote
1 answer

Get the error line with my code on ELMAH

I have set up ELMAH on my Asp.Net MVC 5 website. It's working fine but its error details page is not showing me the exact line that's causing the exception. I was wondering whether I could get the same error page as the default Asp.Net error on my…
Alireza Noori
  • 14,961
  • 30
  • 95
  • 179
1
vote
1 answer

How to use the inner exception when writing custom exception in c#

I am writing custom exception class and using them to log to elmah whenever required. public class MyCustomLogException : Exception { public string Property1 { get; protected set; } public string Property2 { get; protected set; } public…
Yasser Shaikh
  • 46,934
  • 46
  • 204
  • 281
1
vote
1 answer

ASP.NET MVC Site With ELMAH.MVC - Windows Authentication

I am creating an MVC4 site using .NET 4.0, IIS 7+. It is internal so I am using Windows Authentication. I have decided to use ELMAH, and since this is MVC I have decided to use the Elmah.MVC NuGet package. Logging exceptions works. I have it…
Issa Fram
  • 2,556
  • 7
  • 33
  • 63
1
vote
1 answer

Custom authentication for Elmah in .net mvc

I have a mvc project but I use a custom membership provider which I cannot integrate with Elmah. What I want is a way for me to make sure only admins can reach mydomain.com/Elmah So either if I can get Elmah to check with my membership provider…
Rickard Liljeberg
  • 966
  • 1
  • 12
  • 39
1
vote
1 answer

Elmah not logging 404 on IIS. Logs when running on visual studio

I have installed Elmah.MVC using nuget package. When running elmah using visual studio, whenever i try to generate a 404 an error is logged to elmah. Which is the required result in my use case. However when I run the same site on IIS no such error…
Yasser Shaikh
  • 46,934
  • 46
  • 204
  • 281
1
vote
1 answer

Securing ELMAH in ADFS Claims aware MVC 4 app using elmah.mvc.allowedRoles AppSettings

ELMAH for MVC support following appsettings configurations elmah.mvc.allowedRoles elmah.mvc.allowedUsers to secure the elmah route path using roles/users. Apparently, it works fine for windows or forms authentications. But I couldn't make it…
Sharif
  • 97
  • 8
1
vote
0 answers

Elmah works everywhere except not logging errors in mvc 4.5 partial views

I am learning elmah for asp.net mvc. I installed elmah with the latest nuget package for elmah with mvc. I have configured it to work with an elmah logging page and to also log the errors in an sql table. I used the script for elmah with sql. My…
Sue
  • 61
  • 1
  • 1
  • 12