Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled exception when load an assembly

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

    Unhandled exception when load an assembly

    Hello, im trying to incorporate to an existing strategy mqtt protocol, ive added and when I compile it, it seems to be ok, but when I enable the strategy a black screen popup saying that cant find assembly.
    Iv looked for it and seems to be there in the ..\Documents\NinjaTrader 8\bin\Custom\packages\M2Mqtt.4.3.0.0 directory.
    Can anybody telll me the problem?
    Thanks
    Last edited by espacioint; 11-26-2023, 03:50 PM.

    #2
    Hello espacioint,

    Was this imported using the proper steps in Tools -> Import -> NinjaScript Addon?

    If so, this might indicate an issue with the export. Is this a script you have created or one that you have obtained from a 3rd party?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      NinjaTrader_ChelseaB Customer appears to be referring to a NuGet package https://www.nuget.org/packages/M2Mqtt/.
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment


        #4
        Hello Bruce,

        Thanks for that info, that helps.

        espacioint,

        If this is an assembly from NuGet, this must target .NET 4.8.

        Place the file in Documents\NinjaTrader 8\bin\Custom (and not in a subfolder), then add a reference from the NinjaScript Editor.

        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thanks for your help.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          78 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X