Unable to load assembly
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.
Replies
Shares4us
24 May 2021, 11:59
RE:
Problem occurred again but no enum mentioned twice.
The following worked:
- Copying the cBot to another name
- Restarting cTrader
- Open cBot in VS2017
- Build
@Shares4us
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