I had a problem with MessageBox.Show() which did not work.
This happened on two different pieces of software: Kaxaml and an example from Troelsen's C # book.
I complicate this by simply using a simple line inside Show() instead of the Exception delegate in different places in the code, and this helped me to say that I had the correct links. Obviously, if MessageBox worked at all anywhere in the code, it tells me that I have the correct links.
Basically, what happened was a Visual Studio debugger that would run before catch-try blocks, preventing a MessageBox from appearing. When I used the Release version, I would not have a MessageBox.
That this was done by simply disabling the small window that was said in Visual Studio, something like "Do not show this exception." It’s kind of strange that Visual Studio still threw an exception error, although it was in a catch-try block, but whatever it was, it worked for me.
source share