I have a VSTO Excel add-in created using VS2010, and I am using exception handling from Enterprise Library 5.0. It works fine in development, but when I deploy using click once, errors are getting swallowed up by Enterprise Library. I suspect enterprise library is not getting called at all, because I did this:
try {
//..
}
catch (Exception ex)
{
Globals.ThisAddIn.Application.Cursor = Microsoft.Office.Interop.Excel.XlMousePointer.xlDefault;
MessageBox.Show("handle error '" + ex.Message + "' with enterprise Policy");
exManager.HandleException(ex, "Policy");
}
And I get the dialog box, but no error gets logged or displayed or re-thrown.
Does anyone know why the enterprise libraries would fail to load? I checked, and they are strong signed.