How to include App.config

Created at 13 Apr 2020, 12:20
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!
strausa's avatar

strausa

Joined 02.03.2020

How to include App.config
13 Apr 2020, 12:20


Hello,

I would like to know if it is possible to use app.config with cAlgo bot and how to achieve this? I am using generic database repository library for CRUD operations. I included it as a dll to the cBot project. After backtesting and debuging my cBot with attach to process return runtime exception - no connection string found in app.config. I already know that app.config can not be used by class library, is there any other way to get this to work?

Thanks in advance,

Sebastijan


@strausa
Replies

PanagiotisCharalampous
13 Apr 2020, 12:38

Hi Sebastijan,

No this is not possible. You should consider other ways of saving your connection strings.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

strausa
13 Apr 2020, 12:45

RE:

PanagiotisCharalampous said:

Hi Sebastijan,

No this is not possible. You should consider other ways of saving your connection strings.

Best Regards,

Panagiotis 

Join us on Telegram

 

Hi Panagiotis,

thank you for your quick answer. I will try with the hard coded connection string inside the library just for the testing purpose at first.


@strausa