Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is this error please?

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

    What is this error please?

    Error on calling 'OnBarUpdate' method for indicator [my indicator] on bar 0: AssemblyResolveEvent handlers cannot return Assemblies loaded for reflection only.

    #2
    funk101, are you running this indicator on the latest NT7 B19 version? Are you referencing any custom assemblies in your code?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Yes I am - >B 19, and a custom assembly, script compiles fine. But runs an error when I F5 to reload "NinjaScript" on the chart. I was hoping another programmer would notice this error and lend a hand, as I know you will tell me that you don't support this.

      Comment


        #4
        This is likely related to not finding the assembly for loading it, where do you have it copied to?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Well, it's in C:\Users\funk101\Documents\NinjaTrader 7\bin\Custom\MySql.Data.dll (that's the assembly in question). In my NinjaScript Editor, I have "using MySql.Data.MySqlClient;" and Intellisense see's it, and gives my proper methods when I'm writing the code. I'm assuming that it can find the assembly. See attached.
          Attached Files

          Comment


            #6
            funk101, this looks also correct to me - would this info perhaps help?

            BertrandNinjaTrader Customer Service

            Comment


              #7
              Man, thank you, it looked like it would've worked, but alas! No, same error.

              Error on calling 'OnBarUpdate' method for indicator [my indicator] on bar 0: AssemblyResolveEvent handlers cannot return Assemblies

              Comment


                #8
                You're welcome, then I would unfortunately run out of ideas here - could there be a sort of overlap for the System.Data DLL from . NET 4 and the your custom SQL one?
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  You are SO the man! That was it. I re-referenced System.Data to the .NET 2.0 version, and voila! it works. Thanks.

                  Comment


                    #10
                    Great to hear you got it working funk101.
                    BertrandNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by llanqui, Today, 08:32 AM
                    0 responses
                    4 views
                    0 likes
                    Last Post llanqui
                    by llanqui
                     
                    Started by lollers, Yesterday, 03:26 AM
                    1 response
                    51 views
                    0 likes
                    Last Post lollers
                    by lollers
                     
                    Started by Salahinho99, 05-05-2024, 04:13 AM
                    7 responses
                    59 views
                    0 likes
                    Last Post Salahinho99  
                    Started by knighty6508, 05-10-2024, 01:20 AM
                    4 responses
                    29 views
                    0 likes
                    Last Post knighty6508  
                    Started by OllieFeraher, 05-09-2024, 11:14 AM
                    6 responses
                    19 views
                    0 likes
                    Last Post OllieFeraher  
                    Working...
                    X