Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to retrieve type info for 'NinjaTrader.NinjaScript.AddOnBase'...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X