The registry setting appears to not be correct. Install or repair access drivers install on the hosting server.
How to fix the error "InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'DAO.DBEngine'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00000021-0000-0010
Devi E
0
Reputation points
Hi, I am trying to access DAO.DBEngine for an operation and getting the error " InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'DAO.DBEngine'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00000021-0000-0010-8000-00AA006D2EA4}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))."
This was working fine, but recently we started receiving this error, can someone provide a suggestion to resolve this error