Error: Could not load file or assembly 'ThomsonReuters.Desktop.SDK.DataAccess

I downloaded the Usage Example Reference Data API and tried to build it and run it. After many trials using x64 and x86 build config it finally builds but I still have the error mentioned in the title. I moved the various DLL ( msvcp120.dll ; msvcr120 ; EikonPipeDll.dll and I18nResource.dll ) to the build directory in vain. I still have the same error.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    I can run it properly by following these steps:

    1. Download and unzip the DataApiUsageExampleReferenceData

    2. Open DataApiUsageExampleReferenceData.csproj with Visual Studio 2017. I saw warning signs under the References

    image

    3. Press Ctrl+F5 to build and run the example. The example can run properly

    After running, the warning signs under the References are gone.

    The following libraries are downloaded.

    • Common.Logging 2.1.2.0
    • protobuf-net 2.0.0.668
    • ThomsonReuters.Desktop.SDK.DataAccess 1.8.1.0
    • ThomsonReuters.Udap.BusTools 2.9.0.127
    • ThomsonReuters.Udap.Ipc.Managed.Common 2.9.0.0
    • ThomsonReuters.Udap.ManagedPS 2.9.0.0

    The Debug directory has these files:

    imageHow did you build and run the example?

Answers

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭

    What is the full error message? Eikon .NET SDK has dependency on both v10 and v12 of Microsoft C++ runtime libraries. Could you check that you have msvcp100.dll and msvcr100.dll available in the PATH or installed in System32 folder corresponding to the bitness of your application, and if not, copy msvcp100.dll and msvcr100.dll into build folder?

  • @Alex_Putkov Hi Alex. I have started all over again from the begining just to make sure I dont miss a thing. I have now an issue with ThomsonReuters.Desktop.SDK.DataAccess, I've installed the Librairy and add it to my dependecies in the sample code ( DataApiUsageExampleReferenceData ). I am unable to build the solution in x86 and x64. Having this warning : Could not resolve this reference. Could not locate the assembly "ThomsonReuters.Desktop.SDK.DataAccess, Version=1.8.4.0, Culture=neutral, PublicKeyToken=f277fbca8b8695cc, processorArchitecture=x86". Check to make sure the assembly exists on disk. Please can you help.

  • Thank you. This works. I have gone at lengths to resolve the warnings on my own. using Nuget to restore the packages etc..