Thank you for your answers. Of course it is possible to work with the debugger or with try/catch but in fact it does not help me because the error is not shown by the debugger. It is a Windows Error Message and that's the great problem.
You need to make associations in the registry. This will help you http://msdn2.microsoft.com/en-us/library/ms951285.aspx[^]
#region signature my articles #endregion
It's all taken care of by entries made in the HKEY_CLASSES_ROOT hive of the registry. Since I can't be bothered to explain fully how it works you might want to look at this[^] article which provides wrapper classes.
My Blog