Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1012075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:53:26+00:00 2026-05-16T09:53:26+00:00

Can anyone give advice on filtering my Elmah ( http://code.google.com/p/elmah/ ) exception logs? Elmah

  • 0

Can anyone give advice on filtering my Elmah (http://code.google.com/p/elmah/) exception logs?

Elmah has been a very valuable tool in highlighting my obvious mistakes and oversights in my web application.

However now .. most Elmah entries do not pertain to my own stupidity (well — perhaps they do — thus my question), but any advice would be much appreciated.

My Elmah log now has 10’000s of entries similar to:

  • The controller for path
    ‘/ws/login.php’ could not be found or
    it does not implement IController.
  • The controller for path
    ‘/text/javascript’ could not be found
    or it does not implement IController.
  • The controller for path
    ‘/jlkqyvaugdaktp.html’ could not be
    found or it does not implement
    IController. [[ Actually 100s of
    these!! … Do these random pages
    mean something in “HackerDom”? ]]
  • The controller for path
    ‘/Scripts/thickbox/macFFBgHack.png’
    could not be found or it does not
    implement IController.

So .. to the “Question”

It is obvious that that the vast majority of these exceptions are being generated by IController … can I tell Elmah just to “forget” about those and continue to log my genuine exceptions?

Or is it that my very generic MVC IgnoreRoute setup is not good enough? Should I ignore “.htm“, “*.php” and all the others so I can more realistically see Elmah reports about pages/items/objects that my application perhaps more genuinely missing?

Many thanks for your time and consideration.

My Existing Route setup looks like this:

         routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
            routes.IgnoreRoute("{*forums}", new { forums = @"cccForums/.*" });
            routes.IgnoreRoute("{file}.txt");

///  REAL ROUTES
            routes.MapRoute(
                "ItemIndex", // Route name
                "Item/Index/{page}", // URL with parameters
                new { controller = "PageItem", action = "Index", page = 1} // Parameter defaults
                );

.............
.............


/// LAST CASE

 routes.MapRoute("Error", "{*url}", new { controller = "Site", action = "Map" });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T09:53:26+00:00Added an answer on May 16, 2026 at 9:53 am

    One solution would be to implement a catch all route that would redirect all unknown request to a 404 page. This would prevent an uncaught exception and your end users get a pretty page (the non-hacker variety).

    routes.MapRoute("Error", "{*url}",
            new { controller = "Error", action = "http404" }
        );
    

    Place this at the end of your register route function in the global.asax. You should see all of your ELMAH errors disappear.

    EDIT

    Don’t go to sleep yet! :)If your interested in not logging 404 errors (or any other type of errors for that matter with ELMAH), you should be able to do something like this in your web.config:

    <elmah>
        ...
        <errorFilter>
            <test>
                <equal binding="HttpStatusCode" value="404" type="Int32" />
            </test>
        </errorFilter>
    </elmah>
    

    ELMAH ErrorFiltering Documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone give me advice on where to start when it comes to setting
can anyone give me any advice on what to do about this error ?!
Can anyone give me any advice on setting up the ability for a user
Can anyone give me some advice as to how to clean up a string
Can anyone give me a complete list of string manipulation function in Microsoft SQL
Can anyone give me pointers to good books or web sites that teach how
Can anyone give me details of runtime error 3734 in Access vba. For reference
Can anyone give a concise set of real-world considerations that would drive the choice
Can anyone give me a scenario where they think busy cursors are justified? I
Can anyone give me an idea how can we show or embed a YouTube

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.