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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:26:39+00:00 2026-06-16T21:26:39+00:00

Web server with ASP.Net 4.0 installed, Web Pages 2.0 DLLs bin deployed. Pages written

  • 0

Web server with ASP.Net 4.0 installed, Web Pages 2.0 DLLs bin deployed. Pages written in cshtml/razor, but routing is not working.

What is required on the server to activate routing when using only Web Pages as opposed to full MVC (where I’d have my routes defined in global.asax)?

Right now I can only call my pages using the traditional URL and query string.

Any pointers 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-06-16T21:26:41+00:00Added an answer on June 16, 2026 at 9:26 pm

    There are two kinds of “routing” available in the Web Pages framework. The default routing works on matching URLs to file paths. It is quite flexible in that it allows for additional URL segments that populate a UrlData dictionary, and can enable some nice SEO-friendly URL construction. I have written about that here: WebMatrix – URLs, UrlData and Routing for SEO.

    The second kind of routing, which is similar to the routing available in MVC requires a package to be installed: Routing For Web Pages. Once you have installed this, you can either populate your RouteCollection in an _AppStart.cshtml file (which you need to create yourself) or you can do so in Application_Start in global.asax. You can add a global.asax file by selecting the All option in the Choose A File Type dialog when you choose to add a file.

    If you want to know how to use the Routing package, I have written about that too: More Flexible Routing For ASP.NET Web Pages

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

Sidebar

Related Questions

I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
A web server running a ASP.NET web service. To use the web service you
I have my asp.net web server setup to use windows authentication. It is authenticating
I have an Asp.Net MVC application that works in the vs.net development web server.
We have an ASP.Net MVC project that will start with a single web server
When I switch my ASP.NET MVC project from Cassini web server to IIS Express,
I am running an ASP.NET application. The web server is located on the same
I am generating a System.Drawing.Bitmap on the fly in an ASP.NET Custom Web Server
Can someone explain how the ASP.NET Web Development Server work? I don't have IIS
I've added a pre-build action for an ASP.NET web control (server control) project, that

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.