Do I need to refactor the code to get rid of the config file?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy with external dll compiling but not loading
Collapse
X
-
Strategy with external dll compiling but not loading
I have a strategy with an external dll. It compiles fine, but give me the error "Error on calling 'Dispose' method for 'Risk.' Could not load file or assembly "VMAX.C.... or one of it's dependices." The dll has 3 file in the release folder, the main dll, a xml config file with a data connection string, and a pdb file. I added a reference to Ninja for the main dll but not other files since they are not dll files. I'm thinking the xml config file is necessary but don't know?
Do I need to refactor the code to get rid of the config file?Tags: None
-
Hello,
Thanks for the forum post.
Unfortunately this level of integration is outside the bounds that I'm able to provide support for since it is not NinjaScript. If you are still unable to get it to compile it may be worth contacting a NinjaScript consultant that would have some more general c# programming knowledge and be able to assist.
NinjaScript Consultants:
BrettNinjaTrader Product Management
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
60 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
145 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
283 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment