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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:44:09+00:00 2026-05-11T07:44:09+00:00

In two different application, one a custom the other the sample MVC application you

  • 0

In two different application, one a custom the other the sample MVC application you get with a new VS2008 MVC project, [HandleError] is not catching exceptions.

In the sample application I have:

[HandleError] public class HomeController : Controller {     public ActionResult Index()     {         ViewData['Message'] = 'Welcome to ASP.NET MVC!';         throw new Exception();         return View();     }      public ActionResult About()     {         return View();     } } 

which is just the default controller with an exception being thrown for testing.

But it doesn’t work. Instead of going to the default error.aspx page it shows the debug information in the browser.

The problem first cropped up in a custom application I’m working on which led me to test it with the sample application. Thinking it had something to do with changes I made in the custom application, I left the sample application completely unchanged with the exception (yuck) of the throw in the index method.

I’m stumped. What am I missing?

  • 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. 2026-05-11T07:44:10+00:00Added an answer on May 11, 2026 at 7:44 am

    In Web.config, change customErrors:

    <system.web>   <customErrors mode='On'>   </customErrors> 

    If mode is either Off or RemoteOnly, then you will see the yellow screen of death instead of the custom error page. The reasoning is that developers usually want the more detailed information on the yellow screen of death.

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

Sidebar

Ask A Question

Stats

  • Questions 67k
  • Answers 67k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Never use them is my advice. You are in a… May 11, 2026 at 11:52 am
  • added an answer You can find something at eworldui or codeproject Doing a… May 11, 2026 at 11:52 am
  • added an answer An assembly is .NET's 'minimum unit of deployment'. Usually an… May 11, 2026 at 11:52 am

Related Questions

I have two different ways of displaying items in a WPF application. The first
I've got two ASP.Net applications residing in two different folders on my server: /Foo
I am raising exceptions in two different places in my Python code: holeCards =
I have two classes A and B in two different .NET assemblies: AssemblyA and
In SQL Server 2005, we can create similar tables in two different ways. We
I'm trying to get the dates from entries in two different RSS feeds through
I have two insert statements, almost exactly the same, which run in two different
In our setup there are two different websites in IIS 7 setup that point
There are two different ways to create an empty object in JavaScript: var objectA
I'm using two different libraries in my project, and both of them supply a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.