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

DLL Reference error

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

    DLL Reference error

    I'm trying to code an indicator that calls a third party web service.
    (realize my pgm skills are rusty so I hope I explain this correctly)

    I have turned the web service (WSDL) into a C# pgm and compiled it into a DLL. The DLL build uses these references /r:System.dll /r:System.Web.dll /r:System.Web.Services.dll
    /r:System.Xml.dll

    When I add this to my indicator as a reference the class is recognized and compiles fine but during runtime the indicator pukes (very nicely of course by simply not doing anything).

    Any suggestion? I tried compiling the DLL in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and am running NinjaT 6.5.1000.14 (the DLL works fine when referenced by external programs.

    I realize NT support may not cover this type of request but thought there may be some hints as to how to debug this or lessons learned from others extendign the NT platform.

    Thank you,
    Kevin

    #2
    Mystery solved

    Sorry to have poluted the forum with my ignorance.

    Comment


      #3
      No worries, great you got it working.
      BertrandNinjaTrader Customer Service

      Comment


        #4
        How did you solve it?

        Originally posted by i001962 View Post
        Sorry to have poluted the forum with my ignorance.
        I am very curious about the solution as I have the same problem.

        I've compiled it into .NET 2.0, I "referenced" it, I've placed dll file everywhere I could think of, indicator that uses(calls methods) of this DLL compiles in Ninja, but then didn't run at all.

        That's what I am getting in trace file:

        Could not load file or assembly 'IndicatorsForNinja, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

        Comment


          #5
          tealover007,

          Did you add a reference to this in the NinjaScript Editor via a right click -> References and not just from code?
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Josh View Post
            tealover007,

            Did you add a reference to this in the NinjaScript Editor via a right click -> References and not just from code?
            yes, I did. Next day it started working magically. Still not sure what was the issue.

            Comment


              #7
              It would also need a fresh restart of NT then to load the assemblies...
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by judysamnt7, 03-13-2023, 09:11 AM
              4 responses
              59 views
              0 likes
              Last Post DynamicTest  
              Started by ScottWalsh, Today, 06:52 PM
              4 responses
              36 views
              0 likes
              Last Post ScottWalsh  
              Started by olisav57, Today, 07:39 PM
              0 responses
              7 views
              0 likes
              Last Post olisav57  
              Started by trilliantrader, Today, 03:01 PM
              2 responses
              21 views
              0 likes
              Last Post helpwanted  
              Started by cre8able, Today, 07:24 PM
              0 responses
              10 views
              0 likes
              Last Post cre8able  
              Working...
              X