Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The type or namespace name 'UniversalBase' could not be found

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

    The type or namespace name 'UniversalBase' could not be found

    @UniversalOptimizer.cs The type or namespace name 'UniversalBase' could not be found (are you missing a using directive or an assembly reference?) CS0246 1041 34
    I get this strange error, how can I fix this? I do not understand what could be causing it. I haven't modified @UniversalOptimizer.cs

    It is preventing me from compiling my other sources.(this is the only error)

    it refers to this line

    public sealed class Universal : UniversalBase

    #2
    In this particular case, the 'UnversalOptimizer.cs' file needs to be removed. Follow these steps:
    • Open Windows File Explorer (hotkey = Windows key + E)
    • Navigate to Documents > NinjaTrader 8 > bin > Custom > Optimizers folder
    • Delete '@UniversalOptimizer.cs'
    • In NinjaTrader, recompile

    Comment


      #3
      ok, will do - so this is a useless file?


      I don't need to optimize anything if that matters

      Comment


        #4
        It was inadvertently included in the 8.0.17.0 installer for a short time. In the future, it may be included in the installation without causing compile errors.

        Comment


          #5
          where can I download older versions of NT8? whatever was current around Christmas? or early january

          Comment


            #6
            We do not recommend using an older version of NinjaTrader. The current version is 8.0.17.2 and if any issues occur with this version, we should troubleshoot that.

            You can find the previously supported version on our website. Enter your email on the main page, select 'NinjaTrader 8' from the drop down list, then look for the 'prior version' link.

            Comment


              #7
              is it safe to delete @PathTool.cs it also has this problem and @DrawingToolTile.cs
              Last edited by NinjaCustomer; 02-22-2019, 12:21 PM.

              Comment


                #8
                Please include a screenshot of the actual compile errors from the NinjaScript Editor

                Comment


                  #9
                  they are gone now since I deleted those 3 files. They are the only 3 files that gave problems.

                  Comment


                    #10
                    The Namespace "UniversalBase" came back when I upgraded to the latest version of NinjaTrader Version 8.0.17.2 64-bit this week.
                    I removed it so I could compile after searching for the problem and finding this thread.
                    Is that still the recommend fix?

                    Thanks

                    Comment


                      #11
                      Yes, that should be fine. There was a brief time during which the public installer included some files still in development, so anyone experiencing this issue must have downloaded 8.0.17.0 during that time. Removal of the files is the solutions.

                      Comment


                        #12
                        Thanks PatrickG

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Aviram Y, Today, 05:29 AM
                        0 responses
                        5 views
                        0 likes
                        Last Post Aviram Y  
                        Started by quantismo, 04-17-2024, 05:13 PM
                        3 responses
                        27 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by ScottWalsh, 04-16-2024, 04:29 PM
                        7 responses
                        36 views
                        0 likes
                        Last Post NinjaTrader_Gaby  
                        Started by cls71, Today, 04:45 AM
                        0 responses
                        6 views
                        0 likes
                        Last Post cls71
                        by cls71
                         
                        Started by mjairg, 07-20-2023, 11:57 PM
                        3 responses
                        219 views
                        1 like
                        Last Post PaulMohn  
                        Working...
                        X