Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NT7 to NT8 Port breaks prior System.Messaging function

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

    NT7 to NT8 Port breaks prior System.Messaging function

    Hello NT,

    I"m porting from NT7 to NT8.

    In NT7 I'm using this

    using System.Messaging to bring in MSMQ functionality.

    In NT8 I do the same, and the messages are output correctly into the MSMQ queue.

    However the client that is reading this Queue cannot de-serialize the message...my guess is that NT8 is using a different .NET library for System.Messages (4.5?) and the client and my NT7 system probably is using .NET 3.5

    Added to this is that I'm now on Windows 10 and also have NT7 installed..

    At this time I need to keep NT7 and the MSMQ Client (which reads the messages) to the current version of .NET and to have my NT8 port be backward compatible with that.

    Any suggestions?

    Thx.

    #2
    Hello llanqui,

    Thanks for your post.

    NinjaTrader 8 uses .NET 4.8 as of version 8.0.23.0 ​as seen in the Release Notes section of the help guide page linked below.

    Release Notes: https://ninjatrader.com/support/help...8/8_0_23_2.htm

    This is the .NET version that should be used when developing custom NinjaScripts in NinjaTrader 8.

    Note that System.Messaging and the MSMQ Client are not documented in the NinjaTrader 8 help guide and this would go beyond the support we would be able to provide in the Support department. That said, this forum thread will be open to other community members to share their insights on this topic.

    Let me know if I may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Thanks Brandon....it seems the problem is not MSMQ itself,but there is now a conflict with the XML serializtion...another learning curve.... :-)

      Comment


        #4
        Hello llanqui,

        Thanks for your note.

        XML serialization errors could be caused by not adding XmlIgnore on the public property in your script that is causing the error.

        XmlIgnoreAttribute: https://ninjatrader.com/support/help...tsub=XmlIgnore

        Please let me know if you have further questions.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          will check that...thank you...

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by prdecast, Today, 06:07 AM
          0 responses
          3 views
          0 likes
          Last Post prdecast  
          Started by i019945nj, 12-14-2023, 06:41 AM
          3 responses
          60 views
          0 likes
          Last Post i019945nj  
          Started by TraderBCL, Today, 04:38 AM
          2 responses
          17 views
          0 likes
          Last Post TraderBCL  
          Started by martin70, 03-24-2023, 04:58 AM
          14 responses
          106 views
          0 likes
          Last Post martin70  
          Started by Radano, 06-10-2021, 01:40 AM
          19 responses
          610 views
          0 likes
          Last Post Radano
          by Radano
           
          Working...
          X