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

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.Http.GlobalConfiguration.Configuration); If you…
CodingYoshi
  • 25,467
  • 4
  • 62
  • 64
2
votes
0 answers

elmah.bootstrapper errors Forbidden: Access is denied

I am using elmah.bootstrapper v1.0.1 in my ASP.Net MVC v5 project. Have the following key in web.config - It…
s.k.paul
  • 7,099
  • 28
  • 93
  • 168
2
votes
1 answer

How to log warnings by using elmah

I am using elmah to handle exceptions. Now my needs have been increased and I want to log some warnings after few statements like NLog. Here i want to add data in SQL database. I also want to add one column in elmh table, which tells me which row is…
Keval Patel
  • 925
  • 4
  • 24
  • 46
2
votes
1 answer

Manually logged ELMAH errors aren't sending email

I'm manually logging certain errors like this: ApplicationException ex = new ApplicationException("Testing"); Elmah.ErrorLog.GetDefault(System.Web.HttpContext.Current).Log(new Elmah.Error(ex)); The unhandled exceptions are sending email, but the…
nmit026
  • 3,024
  • 2
  • 27
  • 53
2
votes
1 answer

How to secure Elmah Page in RemoteAccess

i have an ASP MVC web site that is published. and i adjusted in webconfig and now anybody can access Elmah page by saying that i didnt use ASP.Net Identity,how can i secure ELmah Page?
AliBoronsi
  • 764
  • 1
  • 12
  • 19
2
votes
0 answers

AllowAnonymous for elmah

when I go to https://site/elmah it will redirect me to the login page, i do not want this, Anonymous user also may go here. (but only on this server and not remote! ) details Its a MVC 4 website with formsauthentication. I added a filter so i do not…
lordkain
  • 3,061
  • 1
  • 13
  • 18
2
votes
1 answer

How to solve Request Verification Token for refer web site

AntiForgeryToken is present on my form under MVC 5 solution. and it is working good. But I my client got some refer web site, if my domain,for example, is www.mysite.com their URL is www.mysite.blabla.com. if user open normal web site it is working…
Arbejdsglæde
  • 13,670
  • 26
  • 78
  • 144
2
votes
1 answer

Elmah with WinForms and class libraries?

I have gone through Elmah documentation, it says it is for asp.net but it do not say anything that if can be used or not for non IIS applications. It is a sort of mystery for me now because we are considering using it in a new project. I found this…
user576510
  • 5,777
  • 20
  • 81
  • 144
2
votes
2 answers

ELMAH exceptions generating generic "The service is unavailable" message

I'm trying to create an availability page which checks all the services that a site uses, wrapping each check in a try/catch and then displaying any failures to the users. One of those services is ELMAH, so I am calling that to double check that we…
Dan Fitch
  • 2,480
  • 2
  • 23
  • 39
2
votes
2 answers

How to use Elmah.MVC with ApiController?

I need to log exceptions from an ApiController. After installing Elmah.MVC I can log 404 error and other in DB, but exceptions in ApiController do not show ups in Elmah. Any idea how to fix that?
GibboK
  • 71,848
  • 143
  • 435
  • 658
2
votes
0 answers

Elmah is sending multiple emails per error. Only remote port is different

I have a ASP.NET MVC 4 app and I am using ELMAH to only send emails. It is sending me 2 emails per error, and the REMOTE PORT is different, but nothing else. And, that PORT # is not the port my app is accessing. For instance, I am using localhost…
M Akin
  • 446
  • 6
  • 18
2
votes
0 answers

How to setup ELMAH in asp.net solution

I am new to ELMAH Error Logging. I have tried different option but didn't work. Following is my solution project structure. I am using ELMAH.MVC nugget package. xyz.sol xyz.web (mvc project) xyz.Service (class librarry) xyz.Data…
Yash Patel
  • 21
  • 3
2
votes
2 answers

How to log text message in case of successful web requests using ELMAH and C#

Can anyone help me to know regarding how to log custom message using ELMAH and C# ,in case of successful web requests return status code 200. Is there any method similar to the one as mentioned below…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
2
votes
1 answer

Elmah.Mvc not logging in MVC4 app when deployed onto Azure

I'm experiencing an issue which seems fairly common, yet I googled for similar questions but none seems up to date, so I hope someone can give a suggestion here. I cannot let ELMAH work in my mvc4 app once deployed onto an Azure web site, while it…
Naftis
  • 4,393
  • 7
  • 63
  • 91
2
votes
3 answers

MVC4 Elmah Location Path not recognised

For my MVC4 application I have used NUGET to load ELMAH into my application. But in the web.config I get the following error message: Location element is unused; no project item found at elmah.axd. Am I meant to create a file with this name? How…
arame3333
  • 9,887
  • 26
  • 122
  • 205
1 2
3
9 10