Lỗi Unable to cast COM
Thường xảy ra khi làm việc với điều khiển Excel.
Khi đó, người dùng thường nhận được thông báo lỗi và kết nối với Excel thường không thực hiện được.
Code:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Excel.Workbook'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208DA-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Excel.Workbook'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208DA-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).Cách thức xử lý
Mở Settings, vào Add or Remove programs, tìm MS Office
Chọn Modify
Có thể sử dụng Quick Repair hoặc Online Repair (nếu Quick Repair không thành công)
Link tham khảo
---------------------------------------------------------------------------------------------
Mọi thông tin xin liên hệ Fanpage AutoLISP Thật là đơn giản!
Cảm ơn bạn đã theo dõi!


Không có nhận xét nào:
Đăng nhận xét