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 6089895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:09:05+00:00 2026-05-23T12:09:05+00:00

I am using Elmah in my MVC 2 project and everything works fine –

  • 0

I am using Elmah in my MVC 2 project and everything works fine – except that Elmah is logging my background-image as an not implemented controller (see http://imageshack.us/photo/my-images/834/unbenannt1ak.png/).

This image is set in my css via

body
{
background: #d9dbea url('scanlines.png');
}

Why is this happening?

  • 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-23T12:09:06+00:00Added an answer on May 23, 2026 at 12:09 pm

    Ok I finally got this one…

    It seems to be a “common” bug, that Elmah logs the favicon.ico if it is not located in your root directory. In order to overcome this problem you might create a filter as follows. I only had to add another filter rule so that Elmah does not log the scanlines.png (or just another image) as I said before. The filter rule is

    <errorFilter>
    <test>
      <and>
        <equal binding="HttpStatusCode" value="404" type="Int32" />
        <or>
          <regex binding="Context.Request.ServerVariables['URL']"
                 pattern="/favicon\.ico(\z|\?)" />
          <regex binding="Context.Request.ServerVariables['URL']"
                 pattern="/scanlines\.png(\z|\?)" />
          <regex binding="Context.Request.ServerVariables['URL']"
                 pattern="/yourimage\.jpg(\z|\?)" />
        </or>
      </and>
    </test>
    </errorFilter>
    

    With this you are able to block unwanted images logged by Elmah. Hope this might help someone 😉

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

Sidebar

Related Questions

I am using elmah with an asp.net mvc 3 site and it works fine
I am using Elmah for logging in a ASP.NET MVC project and I am
I'm using ELMAH to handle the exceptions in my ASP.Net MVC project. I would
We are using ELMAH to log the web application exception which works great!. Also
I try to run ELMAH with my ASP.NET MVC 2 project but have some
I have created a website using ASP.NET MVC and use ELMAH for error handling,
I'm using Elmah to log exceptions. Elmah is great at logging request bodies if
I'm using ELMAH to handle errors in my MVC sites and I've noticed over
I'm using Elmah to log exceptions for my website, everything seems to be all
i am using ELMAH - Error Logging Modules And Handlers For ASP.NET in my

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.