Dear Expert,
I have written .NET code using API for transactions in SAP B1 8.82 and SAP B1 9.1 (using different API).
But when using API, some time it gives following error message :
Unable to cast COM object of type 'SAPbobsCOM.CompanyClass' to interface type 'SAPbobsCOM.Company'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3BA8DAED-5B33-4CE4-A4B8-B4308D68E524}' failed due to following error : Old format or invalid type library. (Execption from HRESULT : 0x80028019 (TYPE_E_UNSUPFORMAT)).
After this error, I need to restart IIS, and once restart is done, the error will be gone and application works fine.
And this issue always happen in uncertain time and frequent.
Any idea to solve this issue?
Thanks