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 Doctor JR, 02-03-2023, 05:23 PM
          1 response
          41 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by topa11, 02-02-2023, 02:24 PM
          2 responses
          41 views
          0 likes
          Last Post topa11
          by topa11
           
          Started by mattlaguardia, 01-31-2023, 07:25 AM
          18 responses
          215 views
          0 likes
          Last Post mattlaguardia  
          Started by ampf27, Today, 01:45 PM
          0 responses
          18 views
          0 likes
          Last Post ampf27
          by ampf27
           
          Started by birdog, 02-02-2023, 09:32 AM
          6 responses
          97 views
          0 likes
          Last Post birdog
          by birdog
           
          Working...
          X