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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:07:54+00:00 2026-05-11T19:07:54+00:00

I have read all these articles about how to make system.web.routing work but all

  • 0

I have read all these articles about how to make system.web.routing work but all these articles explains on localhost:port. I can get this working on the local machine, but as soon as I upload the site on the server, the Routing stops working no matter what I do.

First I was trying without any extension (.aspx) but after all efforts I gave up and added the extension, but still it does not work on the server.

Any help is appreciated.

sample:

in global.ascx

Route test = new Route("home.aspx", new TestRoutingHandler());
Routes.Add(test); 

in Routing handler

public IHttpHandler GetHttpHandler(RequestContext requestContext)
{
    string virtualPath = string.Empty;
    Route route = (Route)requestContext.RouteData.Route;
    virtualPath = "~/Default.aspx";
    return (Page)BuildManager.CreateInstanceFromVirtualPath(virtualPath, typeof(Page));
}

In web.config under httpModules

add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" 

This is so simple and works on a local machine, but not on the web server.

  • 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-11T19:07:55+00:00Added an answer on May 11, 2026 at 7:07 pm

    Verify that the web server is configured to handle all requests with ASP.NET (also called a wildcard handler). If not, it will only serve requests through ASP.NET if the exact requested path corresponds to a physical file on disk and has the .aspx extension. Obviously the Routing concept completely fails the first condition and usually the second.

    Phil Haack has a great walkthrough on how to do this in IIS 6.

    For IIS 7, you just need to have the correct modules and handlers specified under system.webServer in the web.config.

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

Sidebar

Related Questions

I have read a few good articles about coding a socket server but thought
In almost all books and articles I have read about about HIGHMEM in Linux
I have read all threads about this without finding any answer to my problem.
I have read all the articles regarding img and srcs, buttons with autopostpack. Pretty
I have already read all the previous similar posts but I couldn't find a
I have read the documentation and searched all over but I can't find how
I have read a lot about soft deletes and archive and saw all the
I've already read some articles about this matter, but I'd like to ask once
I'm using Linq to SQL on a project and have read articles about how
I have read a few articles about how to programmatically interacting with Active Directory.

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.