If you have additional information about the file, please share it with the FreeFixer users by posting a comment at the bottom of this page. I'm trying to generate an excel file from a datagrid, and this is generating the following error:Īnunhandledexceptionoftype'System.InvalidCastException'occurredinEletronicTaxNotes.exeĪdditionalinformation:TheCOMobjectoftype'.ApplicationClass'cannotbeconvertedintheinterfacetype'._Application'.ThisoperationfailedbecausetheQueryInterfacecallontheCOMcomponentfortheinterfacewithIID''failedduetothefollowingerror:Errorloadingthelibrary/DLLoftype.(ExceptionfromHRESULT:0x80029C4A(TYPE_E_CANTLOADLIBRARY)). .dll is usually located in the c:12.0.0.071e9bce111e9429c folder.