I am having issues with regards to running my ASP.NET MVC application thru my local IIS 5.1 web server. I believe these issues are related to IgnoreRoutes, but I can't seem to craft an IgnoreRoute such that it resolves the problem.
Problem:
I am able to view my elmah error page (localhost/mvcapplication1/elmah.axd), however, the CSS i...
I have a library assembly that outputs trace information, and a client winforms application that adds a trace listener via app.config. If I were to use the library in ASP.NET, not configured for System.Diagnostics tracing, how could I 'catch' the trace output?
Bonus question: Can I do something with Elmah to catch and log this info? O...
We're using ELMAH for handling errors in our ASP.Net MVC c# application and in our caught exceptions, we're doing something like this:
ErrorSignal.FromCurrentContext().Raise(exception);
but when I try to unit test the caught exceptions, I get this message:
System.ArgumentNullException: Value cannot be null.
Parameter name: context
H...
I've set up and configured ELMAH to log all of my errors on an ASP.NET MVC project I'm working on. It will be used by a small group of users who don't need to know too much so whenever there is any sort of error (404, InvalidOperation, Y2K... anything!) I just want to show them a generic default error view with instructions to call our h...
We use ELMAH error exception logging in our application. I'd like to keep ELMAH secure from regular users while still making it available to administrators/developers of the application.
When you set security with forms authentication in the web.config you then lose the ability to access the RSS feed. I'd like to be able to secure EL...
I am looking at moving away from the Exception Management Application Block in the Enterprise Library for a new ASP.NET MVC site.
Scott Hansleman's post(s) on ELMAH has caught my eye but I don't fully understand the approach. Typically I would suppress some exceptions (ones that are recoverable), log them in a central repository, and...
In ELMAH for logging errors to the database you can write:
<errorLog type="Elmah.SqlErrorLog, Elmah"
connectionStringName="EducoparkEntities"/>
However, if I use EntityFramework, this doesn't work because the connection string for EF contains metadata as well:
<add name="EducoparkEntities" connectionString="metadata=res:/...
I have Elmah up and running in my ASP.NET MVC site and I would like to integrate its interface with the administration pages of the site. By default, you invoke the interface with the url ~/elmah.axd, which runs outside the MVC system. The installation requires you to tell MVC to ignore the route, so there's no controller or anything tha...
Hey all!
I have an ASP.NET 3.5 application which is using the Visual Studio Development Server. I set ELMAH up, and it is working fine. I set up the AXD "file" and XML files (using XML as the storage medium) to be in a folder under the root:
v3/elmah/
Now, I'd like to have it so that when elmah or elmah/elmah.axd (or anything in this ...
My ASP.NET MVC application is within a folder called Stuff within IIS 6.0 webroot folder. So I access my pages as http://localhost/Stuff/Posts. I had EMLAH working while I was using the in-built webserver of Visual Studio. Now when I access http://localhost/Stuff/elmah.axd, I get resource not found error. Can anyone point my mistake here...
I recently started using Elmah on our ASP.NET site and it's great however I've run into a problem. Although my log contains plenty of errors (220 to be exact) and I can view them with the web viewer and rss, when I click Donwload Log it simply downloads an empty csv. There is one row for the headers, but no rows!
Has this happened to ...
I posted this to the ELMAH newsgroup, but haven't received a reply in 5 days, so I figured I'd try here.
Here are 2 test statements that I think do the same thing, but neither
seem to work:
<test>
<equal binding="Context.Request.ServerVariables
['APPL_MD_PATH']" value="/LM/W3SVC/1/Root/Ameren/CCI" type="String"/>
...
Hi Experts,
I am working on a MVC project where I have copied a lot of work from NerdDinner project.
In NerdDinner we are returning few views like DinnerNotFound, InvalidOwner if a dinner is not found or if a user is not an owner of the dinner. But In my project want to create an
view (CustomException) and use it for all such reasons. ...
I have sinned on so many levels. I'm hoping someone can tell me a better way to re-write this c#.
I was given a task to modify a section of the web.config at runtime to remove a piece of the subject for an elmah error email and inset the box name.
the reason is we can't trust our cm folks to get these right consistantly
and so we wast...
I have the following settings in my web.config:
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail...
When using ELMAH (which is brilliant) is it possible to view extra information that you have added to an exception.
E.g.
Exception ex = new Exception("New exception to use ErrorSignal functionality");
ex.Data.Add("ExtraInfo", "Here is some extra information i would like to be displayed.");
ErrorSignal.FromCurrentContext().Raise(ex);
...
Elmah always kick in. How to filter programmatically:
Here is my Global file:
/// <summary>
/// Handles the Filtering event of the ErrorLog control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="Elmah.ExceptionFilterEventArgs"/> instance containing the eve...
I'm interested in information about changing ELMAH's UI. I know its possible, either through the ErrorLogPageFactory (not much info about it out there) or by rolling your own.
In short, I'm interested in the built-in facilities of ELMAH for skinning the report UI. Secondary is how to use ELMAH's API to roll your own UI (rather than th...
I am having trouble trying to secure ELMAH. I have followed Phil Haacked's tutorial, with the only difference being the demo project is a web application and my project is a website.
<add verb="POST,GET,HEAD" path="/admin/elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
<location path="admin">
<system.web>
...
Hi all,
I've read http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx and would like to use it in my mvc application; I'm running the MVC 2 preview.
My problem is, that when I follow instructions in article (providing dll and modifying web.config), I encounter an error when accessing http://localhos...