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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:25:47+00:00 2026-06-07T18:25:47+00:00

I have a global error handler in Global.asax and am trying to display the

  • 0

I have a global error handler in Global.asax and am trying to display the exception information in a page called ErrorPage.aspx. I’ve read Microsoft’s page about passing information between asp.net pages (http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx). I don’t think any of these will work:

  • QueryString: I’m concerned that the length of the exception will
    exceed the maximum length of the QueryString.
  • Post Information: The Global.asax page doesn’t have any form fields.
  • Session State: Session state is not available in Global.asax
  • Public Values: I think this only works with .aspx pages
  • Control from Source Page: Global.asax can’t have asp.net controls.

My current thought is that it would be logical to create an instance of the ErrorPage object and navigate to it (as you could do in a Windows Forms application), but I don’t know how to do that or if it is possible in asp.net.

Ultimately, I’m looking for a way to display errors caught by a global error handler in a standard .aspx page. Any suggestions would be helpful.

  • 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-07T18:25:49+00:00Added an answer on June 7, 2026 at 6:25 pm

    What I would do:

    1. Log exception information including stack trace in a log file,
    2. Redirect to an ErrorPage with error code (regular http errorcodes + a generic ‘unknown error’ one + maybe some custom errors that make sense for the application) passed in query string parameter,
    3. Display a predefined message for this error code.

    There is little reason to display actual error messages to end users, more detailed error information not withstanding. If you want to display full information for debugging purposes, turn custom errors off in web.config

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

Sidebar

Related Questions

I have a general exception handler, Application_error in my global.asax where I'm trying to
I have both Page_Error method in page that raises error, and Application_Error in global.asax.
I have a custom error handler in the global.asax's Application_Error method, when an error
I have an exception handler . In my asp.net application. It’s written in Global.asax.
I experience strange problem. We have error handling in global.asax that would redirect user
I have implemented global error handling in my global.asax file to handle any exceptions
We have a global error handler in our ASP.NET application that logs and emails
I have a WCF/REST Web Service that I'm trying to add a global exception
I have a global variable averagel that I am trying to manipulate in a
In Application_Start event in global.asax.cs, I have added some initialization code. This code is

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.