Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The type "Newtonsoft.Json.JsonConvert" exist in both...

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

    The type "Newtonsoft.Json.JsonConvert" exist in both...

    Morning.

    I'm just trying Deserialize a Json with Newtonsoft (already with Ninja libraries).

    My instruction is: Root ro = JsonConvert.DeserializeObject<Root>(Json);

    In my machine works fine but others it seem has a Library called "ProblematicLibrary.dll" that also it seems to have the same method names and raises an error when importing the indicator o when compiling (The type "Newtonsoft.Json.JsonConvert" exist in both "...ProblematicLibrary.dll").

    I tried "using Newtonsoft.Json.JsonConvert" to call directly that metoth but the message persists.
    Also some instrucion like:

    Assembly newtonsoftAssembly = Assembly.Load("Newtonsoft.Json");
    Type jsonConvertType = newtonsoftAssembly.GetType("Newtonsoft.Json.JsonCo nvert");

    ​To call directly that library but it doesn't work.

    #2
    Hello franjcy,

    That may be how the other item is coded, does that happen with every other third party dll or just certain items?

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello franjcy,

      That may be how the other item is coded, does that happen with every other third party dll or just certain items?

      It’s just with the other problematic .dll (it’s installed and used by an add on). I delete it from references and it’s working fine but it’s not an option because I want to share the indicator.

      Also I tried exporting the indicator like asembly (.dll) thinking if it’s referenced it’d work but not the case.

      Comment


        #4
        Helloo franjcy,

        As long as you are referencing the NinjaTrader version and using the fully qualified namespace in your code like you had shown that would really be all you can do..If others use different versions of newtonsoft or program in a way that causes a conflict that may cause issues when multiple items that reference that library are imported.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        596 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        554 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X