I am using the ML.net libraries and there are a few of them that are throwing this error. The code seems to be working but on startup I am getting a dialog? Is there a way to get rid of these or is there a better way to reference them? I added the libraries to the bin directory. Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Unable to retrieve type info for 'NinjaTrader.NinjaScript.AddOnBase'...
Collapse
X
-
Unable to retrieve type info for 'NinjaTrader.NinjaScript.AddOnBase'...
Unable to retrieve type info for 'NinjaTrader.NinjaScript.AddOnBase' from assembly 'Microsoft.ML.Transforms': Unable to load one or more of the requested types
I am using the ML.net libraries and there are a few of them that are throwing this error. The code seems to be working but on startup I am getting a dialog? Is there a way to get rid of these or is there a better way to reference them? I added the libraries to the bin directory. Thanks!Tags: None
-
Hello kenconcannon,
For this type of error you would likely need to use an outside visual studio project to figure out what specific references need to be reference and what other resources just need to be present around the referenced dlls.
The most simple way to do that is to create a new WPF application in visual studio that targets .net framework C# 4.8, then use nuget to add the references. Build the project to see what resources end up in the Bin/Debug folder. Also take note of what references nuget added to the solution. Based on those observations you can determine what needs copied to NinjaTraders bin/Custom folder and then what needs referenced using the NinjaScript editor.
If you still see that the assembly is having an error on startup that may just relate to the code that assembly uses, it is possible it is not fully compatible with NinjaTrader.
You can find other posts in the forum from other users who have tried this reference with limited success, you can try reaching out to the user in this post to see what their end solution was: https://ninjatrader.com/support/foru...55#post1139455
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
66 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
141 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
76 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
47 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
51 views
0 likes
|
Last Post
|

Comment