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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:37:34+00:00 2026-05-31T23:37:34+00:00

I have an ASP.NET 4 Web Forms app that is using URL Routing. I

  • 0

I have an ASP.NET 4 Web Forms app that is using URL Routing. I have the following route specified in Application_Start:

routes.MapPageRoute(“Schedule”, “Schedule”, “~/Schedule.aspx”);

Pretty simple. I just want to reroute requests for “http://example.com/Schedule” to “http://example.com/Schedule.aspx”. Works great. However, if my application throws an exception while using routing, the Application_Error method in Global.asax is not executed. I see the generic .net error message instead. If I throw the same exception when using the full “Schedule.aspx” it works as expected. Any ideas?

  • 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-31T23:37:35+00:00Added an answer on May 31, 2026 at 11:37 pm

    From: http://msdn.microsoft.com/en-us/library/24395wz3.aspx

    An error handler that is defined in the Global.asax file will only catch errors that occur during processing of requests by the ASP.NET runtime. For example, it will catch the error if a user requests an .aspx file that does not occur in your application. However, it does not catch the error if a user requests a nonexistent .htm file. For non-ASP.NET errors, you can create a custom handler in Internet Information Services (IIS). The custom handler will also not be called for server-level errors.

    I think the bolded text why it is not working as expected. Sorry, but I don’t have a nice solution.

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

Sidebar

Related Questions

I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an
I have a asp.net web forms app that uses System.Web.Caching.Cache to cache xml data
I have a simple ASP.NET 3.5 SP1 Web Forms app... I've added the System.Web.Routing
I have an ASP.NET web application that is using forms authentication. Everything is configured
Using web forms I know that you can only have one ASP.NET form on
I have an ASP.NET Web Forms app that I am building and running against
I have a ASP.NET Web Forms application and I'm using some dynamic controls in
I have a windows forms client that consumes an ASP.net web service. It's my
I have a website that uses basic ASP.Net forms authentication. In the web.config file
I have a ASP.NET Web Forms application that internally makes many SOAP and REST

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.