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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:55:10+00:00 2026-05-23T03:55:10+00:00

The following exception is being thrown after an IgnoreRoute method call: The controller for

  • 0

The following exception is being thrown after an IgnoreRoute method call:

The controller for path
‘/anything.php’ was not found or does
not implement IController.

However, I have the following method in my MvcApplication class:

public static void RegisterRoutes(RouteCollection routes)
{
    routes.RouteExistingFiles = false;

    routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

    routes.IgnoreRoute("{*php}", new { php = @"(/?.*/)*\.php$" });

    // Some calls to routes.MapRoute occur here.
}

I’m not really sure why the exception is being thrown if the Mvc website is set up to ignore such routes. Also, I’m testing the site by hitting F5 in Visual Studio and then replacing http://localhost:12345/ by http://localhost:12345/anything.php. Any help is much appreciated!

Thanks,

Andrew

  • 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-23T03:55:11+00:00Added an answer on May 23, 2026 at 3:55 am

    Have you checked your regular expression to make sure it’s .NET compatible?

    Try replacing your regex with this regex:

    routes.IgnoreRoute("{*allphp}", new {allphp=@".*\.php(/.*)?"})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following exception when i try to use the fetchall method
I'd like to Assert that an exception is being thrown and then check some
I am trying to use the following code, but it does not work when
Every now and then I come across an exception being thrown by the Flex
I'm getting the following exception when I run my application in Release mode from
Which of the following exception notification solutions is the best? Exceptional Hoptoad exception_notification exception_logger
I get the following exception when trying to access any nodes of a parsed
I meet following exception when I copy the whole program directoy to another machine.
I have seen the following exception case several times public SomeClass(IEnumerable<T> someValues) { if
I am getting Following Exception while configuring the Connection Pool in Tomcat This is

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.