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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
650 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
577 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment