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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:29:11+00:00 2026-05-12T15:29:11+00:00

I have this two routes currently in my application after decommenting out many other

  • 0

I have this two routes currently in my application after decommenting out many other ones. Let me first explain that I have quite a big application already but have come to a problem where my application does not start at the root url anymore.

If I set starting page to default.aspx then webapp starts at (example) http://localhost:55421/Default.aspx. I don’t want that. I want it without Default.aspx

So I went into app properties and removed Default.aspx as starting page – now it is blank field (just like in a sample new MVC app if you create it in VS 2008).

But now application does start at the required URL but issues an error:
“The incoming request does not match any route.”

Also If I use route debugger it also misses all routes and catches it by catchall route.

I don’t know how all of this is possible since as I said above I have two default routes configured at this time:

routes.IgnoreRoute(“{resource}.axd/{*pathInfo}”);
routes.MapRoute(
“Default”,
“{controller}/{action}/{id}”, // URL with parameters
new { controller = “Pages”, action = “Display”, slug = “Default” }
);

Any help appreciated

  • 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-12T15:29:11+00:00Added an answer on May 12, 2026 at 3:29 pm

    Am I right in thinking you are trying to hit

    http://server/{controller}/{action}/{id} 
    

    with

    http://server/
    

    If you are I think you need to provide a default for the last parameter {id}. You have a default for a parameter slug but without a default for {id} I don’t think ASP.NET Routing can hit it.

    If I’m right

    http://server/Pages/Display 
    

    should also not hit the default route, because you are expecting id in Display?

    HTH
    Alex

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

Sidebar

Related Questions

I have had this problem w/ two seperate WYSWYG editors in my rails application
I currently have two unrelated MVC3 projects hosted online. One works fine, the other
I am currently working on a Rails 3.2 application in which I have two
I have two routes set up in my application: routeCollection.MapRoute(CustomerActivity, Customer/{id}, new { controller
I have this two tables: Table A ID TYPE SDATE EDATE RATING 1 M
I have this two tables from my program to manage stock: Articulos (items): id_articulo
I have this two uls: <ul actualpage=0 id=lastcompanieslist hideable=true upperpage=1> <li page=0 style=display: none;><img
Is there any way to have this: [one[two]][three] And extract this with a regex?
Why this two functions have the strange behaviour of when I click on thead,
having this two classes I always have a doubt of which is the best

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.