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?

    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?

        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?

            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?

                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.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    599 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    344 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    103 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    558 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    557 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X