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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X