Catch application exe config file error
<p>I have recently build a application that run on few client machines. Application run as window start up. In this application i am modifying some <code>key</code> parameters of application run time by accessing it using the following method. 
<code>ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)</code> </p>

<p>Occasionally (Don't know why ??) , config file gets corrupted and application crashes on system reboot with following message </p>

<p><code>application failed to start because its side-by-side configuration is incorrect</code></p>

<p>I want to catch this exception. I have tried putting <code>try-catch</code> block in <code>main()</code> method of application, but still exception not handled and those weird message box coming. </p>

<p>How can i handle <code>corrupted config file</code> ?</p>