I was getting the error: MyApplication.exe has encountered a problem and needs to close.  We are sorry for the inconvenience, but I was not getting any unhandled exceptions in my “HandleGlobalExceptions” event:

 

AppDomain.CurrentDomain.UnhandledException += HandleGlobalExceptions;

 

After setting some MessageBox.Show("Step 1") statements, I could see that the application was entering an endless loop. The code was accessing a property get in the property get it self.

This was the cause of the error message. So no exception will be thrown, but the .net framework simply shows you the message:

MyApplication.exe has encountered a problem and needs to close.  We are sorry for the inconvenience

One Comment

  1. Hi there,
    I encountered the same problem today when testing my software on a virtual machine (Win XP SP3)
    I did not update this installation for weeks. And after doing this MS-Update procedure, everything works fine.
    the Updates being responsible could be:
    KB2518864
    KB2539631
    KB2572073
    KB2538243

    My develeopment architecture though is updated regulary.

    Volker

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.