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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:23:50+00:00 2026-06-16T19:23:50+00:00

I made a stupid mistake, I called myControl.Controls.Add(myControl); . Easy enough. The interesting thing

  • 0

I made a stupid mistake, I called myControl.Controls.Add(myControl);. Easy enough. The interesting thing is that this cause IIS to crash and the exception was thrown in the actual framework. I didn’t even break and let me debug, it just fell apart.

It seems like this should have been handled better by the .NET framework than it was. Or should it? Is this expected behavior with a mistake like this, or could it have been handled more elegantly by the debugger?

  • 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-16T19:23:51+00:00Added an answer on June 16, 2026 at 7:23 pm

    This is a documented behavior – see the documentation at MSDN

    Here’s the relevant quote:

    Starting with the .NET Framework version 2.0, a StackOverflowException
    object cannot be caught by a try-catch block and the corresponding
    process is terminated by default.

    EDIT:
    From debugging perspective, as apparently there is no stack trace, if the issue is reproducible then relevant code walk-through (or debugging before actual exception occurs) may pin-point the issue. Yet another way could be to use IIS Debug Diagnostics tool and get the error details and crash dump.
    Refer this SO answer that seems to suggest similar ways.

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

Sidebar

Related Questions

I know its kinda embarrassing 'cause I made a very stupid mistake by manually
------------------NOTICE---------------- Sorry guys, made a stupid mistake, I had found this fix already: https://devforums.apple.com/message/32282
I made a stupid mistake (forgot semicolon, too much Python lately), but got an
I made a stupid mistake by upgrading my SDK version to r15 as the
I made the stupid mistake of creating too many models in the same Django
EDIT: Solved it! I made stupid mistake, I had a textureId I'd forgotten about
I'm pretty new to python so it's prolly a stupid mistake i made. I'm
I've made a pretty stupid mistake with a git repository and lost some files
Made this nice little loop for hiding and showing div's, works as a charm
Made a custom obj called Item with some string fields and one float. .h

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.