Visual Studio 2017 "The application is in the break mode of visual studio 2017"

I worked on a C # console application and worked until yesterday. When I try to run the same console application, it doesn’t allow me to debug, talking about an error like "The application is in interrupt mode. Your application has entered an interrupt status, but the code supported by the selected debugger is not currently running (for example, only native runtime code).

Someone has encountered a similar problem and resolved it earlier.

+5
source share
3 answers

I ran into this problem in a console application that used a custom configuration section. See the configSections element : if this element is in the configuration file, it must be the first child element of the configuration element.

When creating the configSections element, the first child of the configuration element resolved the problem.

+1
source

I think you have changed your mind. I got this error in a situation like this:

myfr.Navigate(new Uri("ararAbonamenty_page.xaml", UriKind.RelativeOrAbsolute)); 

But the page name was arAbonamenty_page.xaml, changing this setting made myapplicaton work correctly.

0
source

(To be served under "It worked for me, maybe it works for you.")

Rename the main function MainInternal by adding a new Main, which simply calls MainInternal.

When I did this, instead of receiving the "Application in interrupt mode" error message, I received an exception that I could examine when MainInternal was called.

0
source

Source: https://habr.com/ru/post/1272604/


All Articles