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

Loading DLL error...

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

    Loading DLL error...

    I've created a .dll file which is a UserControl. I've added the reference to NT in code editor. I've added the "using UserControlDLL;" to the code. OnStartUp() it instantiates and *should* pop up a form. However, I get this message when nothing happens:

    1/11/2013 12:39:48 PM Default Error on calling 'OnStartUp' method for indicator 'MyForm': Could not load file or assembly 'UserControlDLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    Please advise.
    Thanks

    #2
    Hello funk101,
    Thanks for your note.
    Please make sure your custom assembly targets .Net Framework 3.5. If it targets .Net Framework 4 or above then NinjaTrader will be unable to reference it.

    To assist you further may I know which .Net Framework does your assembly targets? Is build via VS 2010 or later?
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      .NET Framework 4 Client Profile, and VS 2010
      Last edited by funk101; 01-11-2013, 12:07 PM.

      Comment


        #4
        Hello funk101,
        Please make sure to target to the .net framework 3.5 from the projects property as shown in the attached screenshot.
        Attached Files
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Yeah, bummer, still not happening. I have the very basic of code. Just a dll referenced n Intellisense, a "using" statement and an obj.Show() on startup. I get no errors when compiling but that error message when I reload the ninjascript. Same error message as below. My target's are .net 3.5.

          Comment


            #6
            Hello funk101,
            Can you please send the log and trace files to support[AT]ninjatrader[DOT]com
            • You will find the log file on your PC in the (My) Documents > NinjaTrader 7 > Log folder.
            • The log file will be named "log.YYYYMMDD.txt"

            • You will find the trace file on your PC in the (My) Documents > NinjaTrader 7 > Trace folder.
            • The trace file will be named "trace.YYYYMMDD.txt"


            Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

            I look forward to assisting you further.
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              So, when using .dlls in NT every time you make a change do the .dll, and rebuild, you have to shtudown NT and reload in order to see changes? Is there anyway around this?

              Comment


                #8
                Hello,

                Originally posted by funk101 View Post
                So, when using .dlls in NT every time you make a change do the .dll, and rebuild, you have to shtudown NT and reload in order to see changes? Is there anyway around this?
                This is correct. You will need to restart NinjaTrader in order for it to make the call the reload in DLL files in the Documents folder.

                Please let me know if I can be of further assistance.
                LanceNinjaTrader Customer Service

                Comment


                  #9
                  Dll Not Refreshing

                  After Restarting ninja Trader also dll not refreshing. still its shows old values

                  Comment


                    #10
                    Hello Praveena,

                    Thank you for your post and welcome to the NinjaTrader Support Forum!

                    Can you provide further details on the changes made to the .dll file and where these changes are expected to be seen?

                    Please also advise if you are using NinjaTrader 7 or 8 and if this is your own custom .dll file.

                    I look forward to your response.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by maybeimnotrader, Yesterday, 05:46 PM
                    3 responses
                    23 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by adeelshahzad, Today, 03:54 AM
                    5 responses
                    32 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by stafe, 04-15-2024, 08:34 PM
                    7 responses
                    32 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by merzo, 06-25-2023, 02:19 AM
                    10 responses
                    823 views
                    1 like
                    Last Post NinjaTrader_ChristopherJ  
                    Started by frankthearm, Today, 09:08 AM
                    5 responses
                    22 views
                    0 likes
                    Last Post NinjaTrader_Clayton  
                    Working...
                    X