I'm using Elmah to log exceptions for my website, everything seems to be all working fine until one day I noticed that the 500 server errors are not being caught properly. I'm using following script to specifically ignore errors from ScriptResource.axd file.
<errorFilter>
<test>
<or>
<and>
...
hi ppl.
i'm using elmah in a asp.net mvc application and i'm trying to pass the error id from global asax to the controller action responsible for the handling of errors.
i want to show the error information if the exception is a custom exception.
but i'm stuck...
first of all i'm using the event handler in global asax like this
voi...
I'm trying to implement ELMAH in my ASP.NET MVC application, but I'm having a problem that caused me to lose hours and hours ... and it's still unsolved. My application is running normally, but when I try and configure ELMAH and them access Home/Index, the application returns me a 404 (Resource not found).
Has anyone had this problem an...
My understanding is that raising an errorsignal should log my error or hit the custom HandleErrorWithELMAHAttribute class(taken from this example) ,But it does neither.
I am using the HandleErrorWithElmah decorator for the controller in question.The error logging works when it comes to unhandled exceptions in the controller(I am explic...
I'm a bit confused at how to add a message to an error logged programatically with ELMAH.
eg:
public ActionResult DoSomething(int id)
{
try { ... }
catch (Exception e)
{
// I want to include the 'id' param value here, and maybe some
// other stuff, but how?
ErrorSignal.FromCurrentContext().Raise(e);...
I want to use ELMAH to log an exception (without throwing it all the way up the call stack) and it log the entire call stack.
Example code:
protected void Page_Load(object sender, EventArgs e)
{
DoSomething();
}
private void DoSomething()
{
try { TrySomething(); }
catch (Exception ex) { LogE...
We are using the approach described here to log our webservice errors with Elmah. And this actually works, but sadly the username beeing logged is empty.
We did some debugging and found, that when logging the error in the ErrorHandler the HttpContext.Current.User has the correct User set.
We also tried:
HttpContext context = HttpCont...
I'm using ELMAH to log errors. I'm extending HandleError attribute with my own that allows ELMAH to handle all errors. It's my understanding that ELMAH will return Error.aspx to the browser after the error has been logged. That's well and good except for Ajax calls. My client is expecting an Exception returned as JSON if something ha...
Hello!
Is there a way to log the post request data in ELMAH?
I am getting error emails, and while the error log contains the URL, request method, etc, I am not seeing the actual POST data.
For example,
Here is a sample
Actual request: /bep/KotexCode/GetCode?stickerCode=1234532
But, the log only shows the request url and not the vari...
I used the NuPack tool to add Elmah to a site on my developer machine. This worked like a charm, but when I send a request to the elmah.axd page all I get in return is 500 - Internal server error.
My code setup:
Visual Studio 2010
Site built on top of EPiServer 4.62B
Running on .NET Framework 2 (because of EPiServer)
My IIS setup:
IIS ...
ELMAH is purpose-built for logging exceptions in ASP.Net, which is fine, but it does leave a lot of people (myself included) wanting to solve the same all-encompassing exception logging/viewing problem for non-web applications.
Do you know of any open source components for general purpose exception logging and reporting in the vein of E...
I really like elmah for logging errors but how about just the opposite? I want to use elmah to log successfull http requests (status code 200) for the purpose of web analytics. Anyone know where in the source code I may be able to do this?
...
Hi
I am using ELMAH to handle expception in my MVC project. All is working fine, except for when the request is an ajax request.
The exception is captured and logged but when I do a response.redirect to the error page, the redirect doesn't happen and the error message is displayed on the same page, overlapping the existing content.
He...
I have implemented Elmah in one of my ASP.NET MVC projects. In addition I did the following:
I implemented the ElmahHandleErrorAttribute written by Atif Aziz in this post
I added the attribute to all my controllers
I have setup Elmah to filter out 404 errors since I do not want to log those
I added an Error.aspx view in the Shared fold...
Hi Experts!
I am referring this : http://haacked.com/archive/2007/07/24/securely-implement-elmah-for-plug-and-play-error-logging.aspx
Just asked :
My question is what about those who are not using form authentication and just using Custom-Authentication, Authenticate site visitors by Sessions etc. By allowing all registered members me...