• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to retrieve type info error when loading Ninja

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

  • molecool
    replied
    Okay, here's an update:

    Turns out that I had the wrong Newtonsoft.Json.dll and that's what Ninja was complaining about. It was an older version I think got copied over from Ninja7. But the one that Twilio needs apparently was a different one. I copied that one over and now it's launching fine

    So the trick is to put Newtonsoft.Json.dll into the Custom folder but not to add it to the references in the Ninja editor. If I do that I get a compile error in NinjaTrader.NinjaScript.DrawingTools.PriceLevels, some overlapping function call.
    Last edited by molecool; 07-23-2018, 10:11 AM.

    Leave a comment:


  • NinjaTrader_Jim
    replied
    Hello molecool,

    Thanks for your post.

    This error is typically seen when there is a missing reference. The Newtonsoft.Json.dll package you mention may be involved.

    You may wish to make sure that you have .NET 4.5 compatible DLL's and you may wish to confirm that all necessary packages are included.

    I've included links to 2 threads that may provide further direction for troubleshooting.

    Importing Newton.Json - https://ninjatrader.com/support/foru...d.php?t=108382

    LoaderExceptions verifying references - https://ninjatrader.com/support/foru...ad.php?t=85453

    Please let us know if there is anything else we can do to help.

    Leave a comment:


  • Unable to retrieve type info error when loading Ninja

    I'm getting this after adding a DLL to Ninja8:

    Time Category Message
    7/23/2018 6:43:28 AM Default Unable to retrieve type info for 'NinjaTrader.NinjaScript.AddOnBase' from assembly 'Twilio': Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Thing is that I have added Twilio's references and it compiles just fine in both NinjaTrader as as well as VisualStudio.

    The one reference I have not added is Newtonsoft.Json.dll which also used to be part of Ninja7 (or at least was tolerated) but now causes compile conflicts (I think some overlapping definitions) in Ninja8.

    It's possible that Newtonsoft is the culprit here, but the code works - I tested it. Can't get rid of that error message on load however. Please advise.

Latest Posts

Collapse

Topics Statistics Last Post
Started by countjoemoney, Today, 01:16 PM
0 responses
10 views
0 likes
Last Post countjoemoney  
Started by fx.practic, Today, 12:59 PM
0 responses
7 views
0 likes
Last Post fx.practic  
Started by TheNomadicAspie, Today, 12:07 PM
0 responses
8 views
0 likes
Last Post TheNomadicAspie  
Started by alcorr247, Today, 12:04 PM
0 responses
9 views
0 likes
Last Post alcorr247  
Started by firstlanetech, Today, 11:24 AM
1 response
22 views
0 likes
Last Post firstlanetech  
Working...
X