Topics
Replies
deolaolalere
16 Aug 2022, 21:18
( Updated at: 16 Aug 2022, 22:33 )
RE:
PanagiotisCharalampous said:
Hi deolaolalere,
Please make sure that AccessRights are set to FullAccess.
Best Regards,
Panagiotis
The bot code is on FullAccess
namespace cAlgo.Robots
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
public class bkT_exp_2_cBot : Robot
}
And the line is placed in the OnStart
protected override void OnStart()
{
var result = System.Diagnostics.Debugger.Launch();
if (result is false)
{
Print("Debugger launch failed");
}
}
@deolaolalere
deolaolalere
17 Aug 2022, 19:54
RE:
PanagiotisCharalampous said:
Thanks PanagiotisCharalampous
I have approached it from first principles confirm the instruction works on other bots . The issue I raised still remained on the in question bot . The process is terminating unexpectedly (process was unexpectedly terminated.) The platform is unable to load an assembly in a third party library I am using , the failure is silent and doesn't even get to the loading of the diagnostic, which led me to believe perhaps the instruction doesn't work for legacy code
Another variant of the error is
Crashed in OnStart with InvalidOperationException: Cannot load assembly Microsoft.Data.SqlClient
I have not resolved the issue above as to why it cannot load the assembly , when I remove that dependnecy everything works OK. with library it builds in Visual studio but ctrader cannot load it.
I will have to find alternative approach . The library in question is linqtodb
@deolaolalere