Old format or invalid type library. (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT)).
This error is a random SDK error.
Normally it can't be reproduced. If you get it again and again then it could indicate a problem with you B1 Client and recommend there is to resintall it.