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

The Archive Base Latest Questions

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

As the question says, with asp mvc is the RouteCollection object reset for each

  • 0

As the question says, with asp mvc is the RouteCollection object reset for each request… I thought it was set on an application level not per request.

== Edit ==

To give more context to why I am asking this question.

I currently have a web app which has 2 default routes and uses MEF to load additional routes in dynamically from plugins, now I was wondering why my routes were not appearing in the route table debugger, and when debugging every request was calling the plugins with the current routetable, but it had only the default routes.

So every request it appeared to be sending the plugins a new route table with only the 2 default routes, it then adds lets say 5 more routes bringing the total to 7, however then on next refresh it is back down to 2.

So I was a bit puzzled as to why it keeps seemingly resetting the routes constantly.

  • 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-26T02:57:15+00:00Added an answer on May 26, 2026 at 2:57 am

    Route registration is generally done in Application_Start which runs only once. They could be cleared with something like RouteTable.Routes.Clear(), but it doesn’t sound usual for them to be reset.

    That said, I don’t know anything about MEF, so it’s possible that registering routes through it behave differently to how you’d usually do it in Global.asax in a template-created MVC site.

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

Sidebar

Related Questions

The question title just about says it all. I have a ASP.NET MVC 2
the question says it all. i've an asp.net page using jquery. at first when
Question says it all, really. My application is a time tracker. It's currently written
Question says it all. I tried browsing through the latest tag but could not
I'm just starting to learn asp.net mvc and I'm not sure what the right
as the title says my question would be how to debug old asp code
I've been trying to use WF in my ASP.NET application (actually, it's ASP.NET MVC
Background I'm working on building an ASP.Net MVC 3 application that utilizes: JQueryUI for
Currently I'm working on an ASP.NET MVC 2 website. Company policy says that as
Question says it all, I've got a 500,000 line file that gets generated as

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.