Questions tagged [elmah.mvc]
ELMAH.MVC is a tool to integrate ELMAH into ASP.NET MVC applications.
139
questions
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 ...
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....
0
votes
0
answers
388
views
Visual Studio could not find part of the path for .signature.p7s
When I try to check in to TFS through Visual Studio 2019, I'm getting this message:
D:\Source\Suburban\Web
Projects\WebPortalSite\packages\elmah.1.2.signature.p7s: Could not
find a part of the path '...
0
votes
1
answer
105
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 / ...
3
votes
3
answers
1k
views
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 ...
-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 ...
0
votes
1
answer
151
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 ...
0
votes
1
answer
188
views
Elmah.io , can't see logs when accessing http://localhost:port/elmah
I'm new to elmah.io, I'm trying to integrate it with an ASP.NET Mvc app.
The problem is that when I access the http://localhost:port/elmah I can't see the logs even if the errors are logged in elmah....
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....
1
vote
1
answer
372
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 ...
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....
0
votes
0
answers
60
views
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:...
1
vote
1
answer
329
views
Stop Elmah logging dynamically in ASP.Net MVC
I have implemented Elmah logging error by using this article in one of my applications and it is running fine as expected.
Now as per the requirements I have to stop logging error dynamically that ...
4
votes
1
answer
725
views
ELMAH fails to login to DB on production but not test server
First off, here's a few of the potential duplicates that didn't help:
Can't access /elmah on production server with Elmah MVC?
ELMAH doesn't insert error logs to SQL DB on production
ELMAH ...
-2
votes
1
answer
61
views
Nuget errors in MVC project
I am getting below nuget errors in MVC project and I tried uninstalling/installing packages.
2
votes
0
answers
138
views
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 -
<appSettings>
<add key="elmah:web:path" value="/admin/errors" />
</...
1
vote
1
answer
173
views
Does ELMAH provide any methods to READ the errors from the database?
I am working with ASP.Net C# application and using ELMAH to log errors to SQL database.
I need to retrieve the errors from the database, does ELMAH provide any methods to search an error (and return ...
1
vote
1
answer
78
views
Elmah.MVC returns 403 in Local Environment
I have installed Elmah.MVC into a project I'm working on and tried to browse to /elmah but am constantly greeted by this error:
You are attempting to access ELMAH from a remote machine whereas itis
...
1
vote
1
answer
366
views
How to use Azure storage for elmah logs instead of elmah logs in SQL Server database
Currently in my project, I am logging exceptions by using elmah in a separate table in SQL Server. Is it possible to store these elmah exceptions in Azure storage only, not in SQL Server? Since I do ...
0
votes
1
answer
317
views
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 ...
0
votes
0
answers
67
views
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:
<appSettings>
<add key="...
1
vote
0
answers
61
views
How to log data from ELMAH NuGet to MySQL database?
I have a problem with elmah.mysql NuGet. I install it, I run the script in phpmyadmin ( the table and procedures are added ) but it says that the scheme elmah hasn`t been found.
3
votes
1
answer
579
views
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 ...
3
votes
0
answers
166
views
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.
...
2
votes
1
answer
810
views
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 ...
0
votes
1
answer
81
views
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....
0
votes
1
answer
195
views
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.
0
votes
1
answer
514
views
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:...
1
vote
1
answer
2k
views
Elmah.Mvc where are the error logs stored? How can I store them in an azure SQL database?
I am using a simple aspnet MVC project that utilises elmah MVC for error logging. Locally (eg running on localhost) elmah works great however I'm not sure I understand where the data is stored? I ...
2
votes
1
answer
301
views
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 ...
2
votes
1
answer
80
views
How to secure Elmah Page in RemoteAccess
i have an ASP MVC web site that is published.
and i adjusted <security allowRemoteAccess="yes"/> in webconfig
and now anybody can access Elmah page
by saying that i didnt use ASP.Net Identity,...
0
votes
2
answers
697
views
Intercept elmah logging ASP.NET MVC [duplicate]
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?
0
votes
1
answer
398
views
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 ...
0
votes
0
answers
385
views
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 ...
1
vote
2
answers
1k
views
Implementing Elmah in web api project
I am trying to implement ELMAH in a webapi project,since I am new to this elmah technique,I am not able to implement the entire thing.I even tried to follow the sample codes in web but still I am not ...
1
vote
0
answers
255
views
ASP.NET MVC Error Logging: Elmah does not provide error log details
I just integrated Elmah MVC to my ASP.NET MVC 5.2 application. The reason was when I deployed application to server I faced 500 Internal Server error.
Elmah is working fine in my development system ...
1
vote
1
answer
130
views
How to log source error in elmah mvc?
I want to log source error in error page of my asp.net mvc application in the image.
Elmah just log stack trace.
Is there any config that i should set? How?
2
votes
0
answers
98
views
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 ...
-2
votes
1
answer
130
views
Gmail account ID is not sending error mail using ELMAH
Its working fine if i am using domain email account like [email protected] but not working when i am using gmail email ID. My web config is below..
<?xml version="1.0" encoding="utf-8"?>
<!--
...
0
votes
1
answer
93
views
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 ...
0
votes
1
answer
603
views
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:<port>/Elmah.axd
the error appear
HTTP Error 404.0 - ...
0
votes
0
answers
75
views
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 ...
8
votes
2
answers
4k
views
How does one use Elmah in ASP.NET 5/vNext/Core?
I am a bit confused about how to use Elmah in the ASP.NET 5 / MVC 6 projects. I got the package from nuget and it added "Elmah.Mvc": "2.1.2" to dependencies in project.json.
I am not sure where to ...
0
votes
2
answers
512
views
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"...
1
vote
1
answer
7k
views
Viewing ELMAH logs through the web interface on a Live application [duplicate]
I have included elmah.mvc into an Asp.Net MVC application for logging exceptions and custom error logs. It is working fully as intended and I can view the logs within my ELMAH_Error table using a SQL ...
1
vote
1
answer
4k
views
operation cannot be completed because the DbContext has been disposed."
While running the project am getting this error "The operation cannot be completed because the DbContext has been disposed".While checking the net I have seen many answers for this but I think I have ...
1
vote
0
answers
529
views
ELMAH in MVC, doesn't work except on localhost, and /elmah can't find sproc?
I am not sure what happened to my ELMAH setup, it was working fine, then stopped working. I use ELMAH core and ELMAH MVC.
Even checking my source control, nothing really changed in the webconfig. I ...
0
votes
0
answers
393
views
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()
{
...
0
votes
1
answer
245
views
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" ...
1
vote
1
answer
200
views
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
<add key="...