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

The Archive Base Latest Questions

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

IIS 7.5 MVC 2.0 ASP.NET 4.0 If my MVC site getting external request for

  • 0

IIS 7.5 MVC 2.0 ASP.NET 4.0

If my MVC site getting external request for any not existed files, e.g SomePage.aspx is there any ways to redirect such request to any controller/action.

I am using elmah and it is throwing errors when such kind of requests coming.

Also i did add routes.IgnoreRoute("SomePage.aspx") in global.asax.cs to ignore this requests the same as i add to ignore favicon.ico but for SomaPage.aspx it is won’t work, elmah throwing errors anyway.

So there is three questions/solutions i would be happy to get the answers:

1) How to redirect this request to existed controller/action

2) How to Ignore such kind of requests

3) How to turn off “Verify that file exists” on IIS 7.5

  • 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-16T15:15:26+00:00Added an answer on May 16, 2026 at 3:15 pm

    You can get Elmah to filter out certain types of exception. Setting it up ignore 404 errors is a fairly common practice:

    http://code.google.com/p/elmah/wiki/ErrorFiltering

    Extract:

    <section name="errorFilter" type="Elmah.ErrorFilterSectionHandler, Elmah" requirePermission="false" />
    
    ...
    
    <elmah>
        <errorFilter>
            <test>
                <equal binding="HttpStatusCode" value="404" type="Int32" />
            </test>
        </errorFilter>
    </elmah>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am migration a site from asp.net-mvc and IIS onto apache. Everything is migrated
I am having trouble getting ASP.Net MVC 4 running on IIS 6. First, i
I have a asp.net mvc site that being hosted via IIS 7. I believe
I've a asp.net mvc 3 site and i publish it in iis 7.5 (framework
I'm trying to deploy an ASP.NET MVC site to a Windows 2003, IIS 6.0
I have been trying to deploy my asp.net mvc site to IIS 7 and
I have a site built using asp.net mvc running on IIS 7 using integrated
I have created an multi thread application on IIS (ASP.NET MVC), When the threading
I have asp.net mvc 4 web application project on my server in IIS Directory.
I have an ASP.NET MVC 3 app hosted on IIS. This app is using

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.