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 CarlTrading, 05-11-2026, 05:56 AM
                    0 responses
                    31 views
                    0 likes
                    Last Post CarlTrading  
                    Started by CarlTrading, 05-10-2026, 08:12 PM
                    0 responses
                    21 views
                    0 likes
                    Last Post CarlTrading  
                    Started by Hwop38, 05-04-2026, 07:02 PM
                    0 responses
                    184 views
                    0 likes
                    Last Post Hwop38
                    by Hwop38
                     
                    Started by CaptainJack, 04-24-2026, 11:07 PM
                    0 responses
                    341 views
                    0 likes
                    Last Post CaptainJack  
                    Started by Mindset, 04-21-2026, 06:46 AM
                    0 responses
                    264 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X