Unable to load assembly

Created at 18 Nov 2020, 16:08
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!
SH

Shares4us

Joined 01.04.2020

Unable to load assembly
18 Nov 2020, 16:08


What are the possible causes for cTrader to state "Unable to load assembly."

VS2017 compiles without errors
ctrader build gives "Unable to load assembly" 

Any advice appreciated.

 


@Shares4us
Replies

Shares4us
18 Nov 2020, 16:59

RE:

Narrowed it down to the following:

The error was a value in an enum was mentioned twice like

private enum numpies
{
     A = 0
     B = 1, 
     ​​​​​​​C = 2,
     D = 2, // Oops mentioned the second time
     E = 4
}  

The VS2017 compiler has no problem with it but it does not produce an outputfile.
 


@Shares4us

Shares4us
24 May 2021, 11:59

RE:

Problem occurred again but no enum mentioned twice.
The following worked:

  1. Copying the cBot to another name
  2. Restarting cTrader
  3. Open cBot in VS2017
  4. Build 
     

@Shares4us