HEXAQ : A friendly question - answer site for IT professionals

Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))


0

I was able to access Excel workbooks to import data in my database using my application. The project was working correctly till day before yesterday. After that time an error has made me mad.

    Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘Microsoft.Office.Interop.Excel.Application’. 

    This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{000208D5-0000-0000-C000-000000000046}’ failed due to the following error: 

    Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

.

Even I haven't changed a single line of code, the application stared throwing error.

Any help would be appreciated.

Â
asked
 


≡ Total 1 Answer

0

From the error description it seems your Microsoft.Office.Interop.Excel DLL file is mission or corrupted.

Try replacing with new DLL file.

Â
replied


Enter your reply here
Answer Preview:
Viewed: 7237 times
Asked on: 7/2/2013
Permalink
Topics in this question
  50
c#
  24
  3
  4
Search Question
Similler Questions