Adding .dll results FileNotFoundException

Created at 03 Mar 2023, 15:18
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
YS

ys2310

Joined 03.12.2021

Adding .dll results FileNotFoundException
03 Mar 2023, 15:18


I download the Accord .Net machine learning library from the official site http://accord-framework.net/ and unzipped the downlaoded .rar package. then I compiled the source files into .dll.

From cTrader, I successfully added these .dll from the "Manage Refrences" tab and the compilation was successsful.

But when I started backtesting I got an run-time error.

15/01/2020 09:00:00.097 | Crashed in OnStart with FileNotFoundException: File or Assembly 'Accord, Version=3.8.2.0, Culture=neutral, PublicKeyToken=fa1a88e29555ccf7'、or one of its dependencies. The system cannot find the file specified.

What might be wrong in this case? Maybe I missing some other dependency .dll to be added? How can I figure out what file I'm missing?

 


@ys2310
Replies

ys2310
03 Mar 2023, 17:12

RE:

I solved the problem by using .Net 4.x legacy.


@ys2310