Bloomberg API and C#
===

I just get this error and I have not idea why...

Unable to cast COM object of type 'BLP_DATA_CTRLLib.BlpDataClass' to interface type 'BLP_DATA_CTRLLib.IBlpData5'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{53E0FBD5-BF9D-40AD-B29A-C3E1509DA6DF}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

It happens after executing the line below:


objBloomberg.NonTradingDayValue = BLP_DATA_CTRLLib._FILLER_.PreviousDays;
                

Thanks in advance