System.BadImageFormatException: Could not load file or assembly 'ThomsonReuters.Desktop.SDK.DataAcce

Hi,

I am trying to query live Reuters data in a multi-threaded .NET Console application. My implementation does not use the Dispatcher.Frame but a multi-threaded env where I have one thread which is waiting for the required data to be fetched from Reuters (similar to what DispatcherFrame implementation does).

I got the error "System.BadImageFormatException: Could not load fiel or assembly 'ThomsonReuters.Desktop.SDK.DataAccess, Version=1.8.1.0, Culture=neutral, PubliKeyToken=f277fbca8b8695cc' or one of its dependencies. An attempt was made to load a program with an incorrect format".

I used a separate simplified solution (less threads) to query live data from Reuters and it worked.

In the current project, I made sure that all the necessary dlls (as per https://community.developers.refinitiv.com/questions/18427/view.html) are present in the bin folder. When looking with the process monitor i did not find the EikonPipeDll.dll so i assume the error appeared before the library was loaded.

Any help will be appreciated.

Thanks

Best Answer