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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:53:38+00:00 2026-05-17T14:53:38+00:00

I have some places in the C# application where potential Exception’s are not catched,

  • 0

I have some places in the C# application where potential Exception’s are not catched, but there is a try-finally block to release resources before crashing in case of an Exception.

When I run the code in Visual Studio and an Exception occurs, it breaks at the corrsponding line, marks it yellow and describes the exception.

That’s fine.

But after having noticed and read the exception, I want my application to fail savely (execute the finally blocks). This is exactly what would happen if I ran the code outside Visual Studio. However, when I hit F5 to continue, it gets stuck on that very line, marking it over and over again.

What can I do to tell Visual Studio I want the application to continue = fail?

  • 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-17T14:53:38+00:00Added an answer on May 17, 2026 at 2:53 pm

    What’s happening is you’re seeing the Exception Assistant feature of Visual Studio. Whenever there is an unhandled exception in user code it will display to inform the user of the problem.

    Unfortunately in certain circumstances it can’t be made to go away and you get the behavior you’re describing. It’s definitely very frustrating when that happens. The best way to work around it is to disable the exception assistant.

    • Tools -> Options
    • Debugging -> Generale
    • Uncheck “Enable the exception assistant”
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java web-application. In some places there is showing of dates. I
I have a couple of places that have some code like this: <cfinvoke component=#application.path#cfc/eval_faculty
I have a Pyramid application which uses request.environ['REMOTE_ADDR'] in some places. The application is
There is a Java Struts application running on Tomcat, that have some memory errors.
I'm working on a class-based php web app. I have some places where objects
I have a Singleton to manage some variables I need in various places in
I'm designing a Java application using SWT. I have some tables which will display
I have some places where implementing some sort of cache might be useful. For
I have some trouble. My application could be divided to 3 logical parts (import,
I have found some places that mention window messages are returned by GetMessage in

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.