I\'m experiencing that the IDE breaks sometimes when my application terminates.
When this occurs, the call stack is empty, and the thread list shows some threads which d
Go to exception settings and uncheck "Magaged Debugging Assistants"
I didn't find any way to actually debug the problem. I solved the problem the bruteforce way:
I removed all assemblies and COM objects one by one until the error was gone.
In my case, I had a public control with a WithEvents in a module. It seems that VB.NET didn't like that at all. From now on, I will put the control and its withevent in a form.
The main problem however remains: Visual Studio doesn't offer any help to isolate the problem easily.
This is only a warning message when you run program in debug mode. If you change to the "Release" mode, you will not see this message again.
When you are in the debugger you can navigate to watch window and use pseudovariables to display some information about the root cause. One particularly useful is $exception
.
Check document about pseudovariables.
This can occur because some method or constructor is inaccessible (private or internal), put the as public.
The XAML need call the methods to start application
You may not be able to see the code where the exception happens if it's a part of a library or something else not written by you. The following might help:
Debug > Options > General > Uncheck "Enable Just My Code"