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 ETFVoyageur, Today, 02:10 AM
                    2 responses
                    27 views
                    0 likes
                    Last Post ETFVoyageur  
                    Started by ryan_21, Today, 08:46 PM
                    1 response
                    2 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by ESHunter, Today, 08:06 PM
                    1 response
                    8 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by ETFVoyageur, 05-07-2024, 07:05 PM
                    18 responses
                    144 views
                    0 likes
                    Last Post bltdavid  
                    Started by thumper57, Yesterday, 04:30 PM
                    8 responses
                    26 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Working...
                    X