elmah

How do I combine MVCContrib's "Rescue" with Elmah?

I got the Rescue attribute working. It properly serves up the DefaultError view when there is an unhandled exception. However, these exceptions will not get logged or emailed. This SO question is answered by Atif Aziz and it looks pretty solid, but it applies to the built-in HandleErrorAttribute, which Rescue replaces, right? How do I g...

ELMAH - pass varible, and other text?

I've just started playing with ELMAH. was wondering, is there a way to pass info, eg a variable value, or some other text when an exception is thrown?. Currently Im using this: ErrorSignal.FromCurrentContext().Raise(e); ...

SecurityException after adding ELMAH to WCF project

I'm having a problem with a WCF (.Net 3.5) site using ELMAH on IIS 7.5. This is the exception message: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. To verify that it was the combination of W...

Securing Elmah RSS Feeds in ASP.NET website

I followed the answer to this question http://stackoverflow.com/questions/1245364/securing-elmah-in-asp-net-website to restrict access to the elmah handler. However, it seems that adding an RSS feed to Outlook for the URL elmah.axd/rss or elmah.axd/digestrss bypasses the authentication. What's the point of securing the handler if someone...

Customize elmah.axd output fields

ELMAH shows host, code, type, error, user, date and time by default on its error log web page. Is there any way to configure it and show other fields like IP or REFERER? ...

How do I get ELMAH to work with SQL Server (permission problems)

I've got ELMAH working on my (Cassini) development server, and was quite happy with it, but now that I'm trying to move everything to my production server (IIS7), the honeymoon looks like being over. I've got past the "gotcha" with IIS7, which frankly could have been better highlighted in the documentation, and if I just use the in-memo...

ELMAH on IIS 7.5 producing HTTP 404 error

So, have an ASP 3.5 site built using ELMAH. It runs fine under IIS 5.1, I can see all the error pages, etc. Set up the site on another machine running IIS 7.5. Now when I go to my /admin/elmah.axd page, i see a 404 error from IIS 7.5. Any thoughts on what I should look at? ...

ELMAH with IIS6.0 and SQL Server 2005

On production I have ELMAH configured so that the errors are logged into a SQL Server 2005 database created specially for ELMAH. The sites run on IIS6.0 web server. ELMAH is able to send emails for the errors, but nothing is getting logged into the SQL Server database. The connection is a trusted connection and I have <section name="...

Add a Session Variable or Custom field to the Elmah Error Log table

I want to add my own session variable to elmah error log table and display it. I already have modified the source code and added the new fields to Error.cs and other fields but I don't know but when I assign an HttpContext.Current.Session["MyVar"].tostring() value to my field in the constructor it stops logging exceptions and does not lo...

Elmah and 404s under IIS6

Just wondering if it's possible to get Elmah to log 404s that aren't picked up by the ASP.NET framework - i.e. the 404s that IIS spots and replies to. Presumably this would involve some kind of entry in IIS -> web site properties -> Custom Errors tab. Can't find any reference on how to do this. ...

Clientside error logging using Elmah

I'm using ELMAH to log my .net errors. It's working great, but I want to extend the error logging to include client side errors, i.e arbitrary JavaScript errors. I can capture the errors using window.onerror event and then call a .net handler (.ashx) to log the error in elmah, but this is just my little hack to solve the problem. Is ther...

Configure ELMAH without having to modify web.config except for httpmodules and httphandler

I want to create seperate config (for example elmah.config) with just <configSections> <sectionGroup name="elmah"> <section name="errorLog" type="Elmah.ErrorLogSectionHandler, Elmah" /> </sectionGroup> </configSections> <elmah> <errorLog type="Elmah.SqlErrorLog,Elmah" connectionString="....." />...

How do I configure ELMAH programmatically?

I'm interested in using ELMAH but need to configure it programmatically. We have existing infrastructure for determining connection strings and the like, and can't code them into Web.Config. How do I go about using ELMAH in this case? ...

System.Web.HttpException in asp.net mvc 2 on images and javascript files

Hi I am getting the following errors reported by ELMAH on my asp.net mvc 2 site for javascript files, images etc. System.Web.HttpException: The remote host closed the connection I have done some research and it appears that the user/bot is clicking a link on the site before the page has fully loaded. Now this error never occurs o...

Elmah on MVC website with WordPress/php sub directory

I have created a website using ASP.NET MVC and use ELMAH for error handling, this works perfectly. After setting up a virtual directory on my website under /blog and adding the necessary WordPress php files and mysql db, I get the below error come up. Could not load file or assembly 'Elmah' or one of its dependencies. The system cannot ...

Unwanted SQLite inserted in \bin

I am using Visual Studio 2010 and using web deployment to promote the .Net MVC site to specific environments. I installed Elmah, and it worked great on my DEV environment, but when I pushed TEST, I got exceptions because SQLite was not a good format. I am not using SQLite in Elmah or otherwise that I know of. I have removed all visibl...

ELMAH - Filtering 404 Errors

I am attempting to configure ELMAH to filter 404 errors and I am running into difficulties with the XML-provided filter rules in my Web.config file. I followed the tutorial here and here and added an <is-type binding="BaseException" type="System.IO.FileNotFoundException" /> declaration under my <test><or>... declaration, but that complet...

how to setup Elmah for asp.net 1.1?

I am trying to setup elmah for asp.net 1.1 application. i have following entry in my web.config <httpHandlers> <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" /> </httpHandlers> <httpModules> <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/> </httpModules> <configS...

Problem passing ELMAH log id to Custom Error page in ASP.NET

I am using ELMAH to log unhandled exceptions in an ASP.NET Webforms application. Logging is working fine. I want to pass the ELMAH error log id to a custom error page that will give the user the ability to email an administrator about the error. I have followed the advice from this answer. Here is my global.asax code: void ErrorLog_Log...

Elmah for non-HTTP protocol applications OR Elmah without HttpContext

We are working on a 3-tier application, and we've been allowed to use the latest and greatest (MVC2, IIS7.5, WCF, SQL2k8, etc). The application tier is exposed to the various web applications by WCF services. Since we control both the service and client side, we've decided to use net.tcp bindings for their performance advantage over H...