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
0
votes
0 answers

can ELMAH detect ASP.NET exception logged only in event log?

I configured ELMHA on my ASP.NET MVC application but still not able to see in ELMHA logs some exceptions that I have only in the EvenLogs as Warning (example below) Event code: 3005 Event message: An unhandled exception has occurred. Event…
CDominik
  • 115
  • 1
  • 10
0
votes
1 answer

ASP.Net MVC: elmah.axd will be accessible for admin role only

i read this article to implement elmah http://www.c-sharpcorner.com/UploadFile/858292/exception-logging-in-mvc-using-elmah/ but i want only authorized person with admin role can see the elmah.axd file. how could i do it? guide me. i found one way to…
Thomas
  • 33,544
  • 126
  • 357
  • 626
0
votes
0 answers

Elmah mvc BadImageFormatException

I want to use elmah in mvc applicaion. I installed elmah from nuget PM> Install-Package Elmah.MVC -Version 2.1.2 I added following code to webConfig file:
user7411295
0
votes
1 answer

Why receive weird error messages asp.net mvc "elmah.mvc logging library"?

I have web application developed using Asp.Net MVC 5. I am integrated Elmah.MVC error logging library for error logging and reporting. I got weird error messages like the following: System.Web.HttpException: The controller for path '/manager/html'…
0
votes
1 answer

Elmah: Not showing Exceptions on Testing Environment

Elmah is logging the Errors(in specified path) but not showing on the interface "elmah.axd". and it is working fine on the local enviromnent. Please guide me. I am new for elmah.
Pankaj Kumar
  • 655
  • 3
  • 10
  • 16
0
votes
1 answer

elmah.mvc remote access, what should be set?

elmah.mvc should work with mvc5 smoothly? To rule out any other problem, I created a new Web mvc project (with VS2015). I added with nuget the Elmah.mvc package, and the configuration looks like this:
dovid
  • 6,354
  • 3
  • 33
  • 73
0
votes
2 answers

Intercept elmah logging ASP.NET MVC

I would like to try to intercept and do some other processing ( export a database ) when elmah raises an error.Is there a way to do that?
Aflred
  • 4,435
  • 6
  • 30
  • 43
0
votes
1 answer

ELMAH regex REMOTE_ADDR filter not working

ELMAH generates an exception like below when a known process visits a non-existing URL on our website: System.Web.HttpException: The controller for path '/manager/' was not found or does not implement IController. Whereas going to that…
joym8
  • 4,014
  • 3
  • 50
  • 93
0
votes
0 answers

Elmah is letting anyone access the error logs, even with the authorization attribute

I've recently implemented Elmah error logging. I've created a SQL Server db where the errors are being logged and all is good. I've been trying to secure Elmah so that only the Admin role is allowed to access example.com/elmah. Right now anyone is…
maxshuty
  • 9,708
  • 13
  • 64
  • 77
0
votes
1 answer

ELMAH MVC Route not displaying

I just installed ELMAH.Mvc and left all the default configurations and I am able to get to the elmah route and see my log. however, when i deploy my application I get a 403 Forbidden Access page. I thought since I had the requiresAuthentication flag…
Marco
  • 2,453
  • 3
  • 25
  • 35
0
votes
1 answer

Elmah does not work in MVC5

I have VS2015 with MVC5 and I installed Nuget package Elmah.MVC But I am not able to get it to work. When I submit URL address localhost:/Elmah.axd the error appear HTTP Error 404.0 - Not Found in web.config by default nugget package added…
Muflix
  • 6,192
  • 17
  • 77
  • 153
0
votes
0 answers

Custom Logger for Elmah producing error when trying to read the logs

We are trying to implement a custom logger for Elmah to log errors in a RavenDB database in an MVC5 application. The Logging works perfectly but when we try to read the logs we get an exception for all properties of the Error Class that are of type…
user2981411
  • 859
  • 12
  • 34
0
votes
2 answers

Log ELMAH errors based on the Database Environment In use

I am using ELMAH to log errors in my database. The problem I have here is that ELMAH always logs error in my Production database. I have two connection strings in my database one for "Live Environment" and one for "Dev Environment".
Siddharth
  • 436
  • 2
  • 11
  • 29
0
votes
0 answers

Elmah MVC how handle error and show Error page

In asp mvc 5 i have installed Elmah.MVC (2.1.2) with NuGet. Now in a Action method i've raise an exception: public class MyController : Controller { public ActionResult Index() { throw new Exception("This is test Exception"); …
Tom
  • 4,007
  • 24
  • 69
  • 105
0
votes
1 answer

Elmah: How to hide username?

By default Elmah obviously logs the user name as part of its log entries. Our costumer sees this as sensible data and wants it removed. How can this be done? (By the way: There also is the "Code" field in the logs. Its always empty. What does this…
Jer
  • 383
  • 3
  • 17