Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error in NinjaTraderAddOnProject.zip

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

    Error in NinjaTraderAddOnProject.zip

    On the help page NT provides a sample AddOn Project. The link text is "Download Visual Studio Solution for AddOn Development".



    I downloaded this solution today, build it and added as a reference to my NinjaTrader installation.

    I'm getting the following error:

    Unhandled Exception: 'Set connectionId threw an exception.' Line number '7' and line position '3'.

    Click image for larger version

Name:	Capture.PNG
Views:	382
Size:	4.4 KB
ID:	1077441

    I have a copy of this file (download from the same place several months ago) which works fine.

    I retested the two different solutions several times today. The old file consistently works. The new file consistently fails.

    I'm running NT 8.0.19.1 64-bit.

    I tried to upload the old file as an attachment, but it was too big.


    Steve L
    NinjaTrader Ecosystem Vendor - Ninja Mastery

    #2
    Hello Steve L,

    I have tested and I am not able to reproduce this behavior.

    Below is a link to a video.
    https://drive.google.com/file/d/12UQ...w?usp=drivesdk

    If you follow the exact steps shown in the video are you experiencing different behavior than what is demonstrated in the video?

    I am also attaching the dll compiled in the video that I used if you would like to test it.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks, Chelsea.

      Following your video, everything worked.

      Looks like this was due to having my project files in a OneDrive folder. Something seems to happen to the DLL when built in a OneDrive folder.

      I don't normally do this, but wanted to share the zip between two computers and decided to build the project in place.

      Thanks,
      Steve
      Steve L
      NinjaTrader Ecosystem Vendor - Ninja Mastery

      Comment


        #4
        Sorry for the bad english, I used the google translator.
        I came across the same problem and the solution was simple:
        I removed the references to the NinjaTrader.Core.dll and NinjaTrader.Gui.dll dll's from the project and added them manually from the ninjatrader installation folder.
        I hope it helps other people who are facing the same problem.

        Comment


          #5
          Hello smwtf,

          Welcome to the NinjaTrader forums!

          Are you referring to references in the References window from the NinjaScript Editor?
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_ChelseaB View Post
            Are you referring to references in the References window from the NinjaScript Editor?
            No. I am referring to References from Visual Studio Solution.

            Comment


              #7
              Hello smwtf,

              May I confirm that you are using 8.0.21.1 and that you are clicking the Visual Studio icon button on the NinjaScript Editor to launch the project?

              NinjaTrader has ensured that all references for NinjaTrader will be included when clicking the Visual Studio icon button on the NinjaScript Editor.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by helpwanted, Today, 03:06 AM
              1 response
              5 views
              0 likes
              Last Post sarafuenonly123  
              Started by Brevo, Today, 01:45 AM
              0 responses
              7 views
              0 likes
              Last Post Brevo
              by Brevo
               
              Started by aussugardefender, Today, 01:07 AM
              0 responses
              5 views
              0 likes
              Last Post aussugardefender  
              Started by pvincent, 06-23-2022, 12:53 PM
              14 responses
              242 views
              0 likes
              Last Post Nyman
              by Nyman
               
              Started by TraderG23, 12-08-2023, 07:56 AM
              9 responses
              384 views
              1 like
              Last Post Gavini
              by Gavini
               
              Working...
              X