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

The Archive Base Latest Questions

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

Is it possible to catch the YSOD that occurs from a asp.net app’s web.config

  • 0

Is it possible to catch the YSOD that occurs from a asp.net app’s web.config being missing/broken/corrupt and actually show a more helpful meaningful message which might help the user fix the issue.

Recently used WordPress and it showed a lovely error message when I accidentally deleted the wp_congif.php file. I love how it could detect it, handle it, continue running and tell me what I’d probably done and how to fix it. Would do wondered to have on live sites and for sanity checking when deploying etc.

Pondered using custom error trapping but I’m not sure it would work as without a web.config will the app even run?

  • 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:48:56+00:00Added an answer on June 7, 2026 at 6:48 pm

    That would have to happen at the IIS configuration level, as without a valid web.config the application throws an exception before it can handle the exception. You can’t really do anything about it from within the application.

    If there was a custom application configuration file missing/broken, then your ASP.Net code could handle it through detection in application startup, but with a broken web.config you’re not going to get that far (missing, you could detect through looking for a value in appsettings and dying gracefully if it’s not there).

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

Sidebar

Related Questions

Is it possible to catch an exception from anywhere in a console app that
Using the async CTP from Microsoft for .NET, is it possible to catch an
Is it possible to catch a classical ASP Scripting Timeout and redirect to a
Is it possible to catch errors (for instance due to timeout) with net-snmp in
Is it possible to define two sections in the web.xml in order to catch
Is it possible to catch an exception thrown from one thread in another thread?
Is it possible to catch the event that Soft Keyboard was shown or hidden
please, is it possible to catch the output from a console program? I would
Possible Duplicate: Performance Cost Of ‘try’ I am being told that adding a try
Is it possible to catch and log all JS errors that could happen through

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.