If the first line following  ******** Exception Test ********** reads:


System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component


It can normally be fixed by repairing your Microsoft Office installation.



This has been reported and confirmed on Office 2013, in particular installations which a) have been upgraded from 32-bit Office to 64-bit Office and/or b) have never had Office updates or service packs applied or where the updates or service pack may be corrupt.


Resolution: Repair Microsoft Office


Via the Add or Remove Programs dialogue in Windows select Microsoft Office, then Modify and follow the instructions to 'Repair' it.