Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GlobalSuppressions.dll

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

    GlobalSuppressions.dll

    All of a sudden, when I try to export my assembly as a Dll, I get a message that says Documents/NinjaTrader 8/bin/Custom/GlobalSuppressions.dll could not be found. The export process stops on that message like this file is somehow important to exporting scripts.

    How do I fix that?
    Thanks!

    #2
    Hello traderpards,

    Thanks for your post.

    The GlobalSuppressions.dll is not a file that comes default with NinjaTrader.

    Is this related to a third-party addon that you are using in your custom NinjaScript that you are trying to export?

    If you run a compile in the NinjaScript Editor window, do you see any compile errors appear? If so, what do they report?

    I look forward to assisting further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      I'm trying to export all my own stuff - nothing third party in any context. I get no other errors, only that. Are you familiar with the security software that is used to obfuscate the DLL and what it's components are? That's the only thing I can think of.

      Comment


        #4
        Hello traderpards,

        Thanks for your note.

        To clarify, there are no compile errors mentioning GlobalSuppressions.dll when you run a compile in the NinjaScript Editor. Is that correct?

        The software code used to obfuscate the DLL is not known by the Support department so I am not sure what the components are.

        Exporting NinjaScript as Assembly: https://ninjatrader.com/support/help...riptAsAssembly

        Are you using a dll in your script(s) called GlobalSuppressions?

        Please send me a screenshot of the error you are seeing and the exact steps you are taking to export the NinjaScript as an assembly so that I may investigate this further.
        • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
        • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
        ​I look forward to assisting further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Thanks Brandon,

          I didn't get a notification of your second post so I'm late responding.

          I think - and I'm nowhere near certain - but I think this might have something to do with not applying the renewal for the obfuscation code from SecureTeam that you guys recommend in the export functionality. I got the renewal but wasn't in a hurry to apply it and probably accidentally deleted it. Perhaps GlobalSuppressions.dll was part of that and got deleted when last year's expired? I don't know - that's my best guess. But then, when I select the option to not obfuscate the code, I get the same message:

          Click image for larger version

Name:	image.png
Views:	138
Size:	34.8 KB
ID:	1235277
          I can't think of any other possibility of where that file could have come from. I get the error when I try to export, I pick all of my files, click OK to export, name my file, click OK on that dialog and up pops the error telling me to check my logs because it couldn't export.

          Something in the export process is looking for that file. So fine, I can't protect the code so I'll export plain-jane DLL. (Export as compiled assembly - checked; Protect compiled assembly - unchecked) until SecureTeam returns my email, which they don't seem to be in any hurry to do.

          Can't do that either because I get the same message. So if GlobalSuppressions.dll isn't part of the Ninjatrader package, then it shouldn't prevent me from exporting plain-jane. Except it does.

          What do you think?

          Comment


            #6
            Hello traderpards,

            Thanks for your note.

            Typically this error is caused when a .dll file is being referenced that NinjaTrader is unable to find.
            1. Right-click within the NinjaScript Editor window and select "References".
            2. Locate and select the reference to the .dll file mentioned in the Error.
            3. Click "remove" to remove the reference.
            4. Click "OK" and recompile.
            ​After removing the reference, run a compile in the NinjaScript Editor window and then try exporting your script.

            Please let me know if I may assist further.
            <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

            Comment


              #7
              Thanks Brandon but that's not it. I don't use anyone else's stuff so the only reference I have listed is VendorLicensing...

              Click image for larger version  Name:	image.png Views:	0 Size:	4.7 KB ID:	1235285

              And there isn't GlobalSuppressions.dll in the editor references either...
              Click image for larger version

Name:	image.png
Views:	112
Size:	35.4 KB
ID:	1235298​​

              Would you happen to have any other ideas? Just for the heck of it, I tried exporting just the code, not as an assembly. I got the same error. So I can't export anything in any of the three possible ways Ninja offers.



              Last edited by traderpards; 02-13-2023, 09:10 PM.

              Comment


                #8
                Hello traderpards,

                Thanks for your note.

                This generally means that you have a compile error related to something on your platform.

                Please run a compile in the NinjaScript Editor window and note whether or not there are compile errors that appear. If compile errors do appear, what exactly do they report?

                After running a compile in the NinjaScript Editor window, please send me a screenshot of the NinjaScript Editor window so I may investigate further.

                If possible, please share the .cs files with me so that I may look into this matter further and test it on my end. Custom indicator files could be found in the Documents\NinjaTrader 8\bin\Custom\Indicators folder.

                I look forward to assisting further.
                <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                Comment


                  #9
                  Sorry Brandon, there is no compile error. When I compile, I get the pleasant chime and no errors.

                  I'm pretty proficient at fixing compile errors anyway.

                  To recap:
                  1. I have no 3rd party assemblies
                  2. There is no GlobalSuppressions reference anywhere
                  3. The Ninjascript assembly builds like a champion.
                  4. I can't in any way export any assembly.

                  Comment


                    #10
                    Hello traderpards,

                    Thanks for that information.

                    Please set up a clean environment using the steps below.

                    Creating a clean environment can be done by following the steps below:
                    • Navigate to your Documents folder > Right-click on the 'NinjaTrader 8' folder > Rename > rename the folder to 'NinjaTrader 8 OLD'. DO NOT delete this folder.
                    • Uninstall NinjaTrader within Windows Control Panel.
                    • Navigate to C:\ > Program File (x86) > Delete the 'NinjaTrader 8' folder if it exists
                    • Once these steps are completed, download and install NT8 from the link below:
                      • (https://ninjatrader.com/GetStarted)
                        • This will generate a brand new "NinjaTrader 8" folder in the Documents. This is where all your user data is stored, just uninstalling from the Control Panel will not modify this folder. To revert back to your old installation, rename "NinjaTrader 8" to "NinjaTrader 8PREV" and rename "NinjaTrader 8OLD" back to "NinjaTrader 8" NinjaTrader looks for a folder called "NinjaTrader 8" in the documents to operate.​
                    After installing NT8, copy your indicator's .CS file from the Documents\NinjaTrader 8 OLD\bin\Custom\Indicators folder to the new Documents\NinjaTrader 8\bin\Custom\Indicators folder.

                    Open NinjaTrader 8, open a New > NinjaScript Editor window > run a compile.

                    Then, try exporting your indicator in the clean environment.

                    Are you able to successfully export the indicator from a clean environment? If so this means that there is something in the other environment causing the error to occur.

                    Please let me know if I may assist further.
                    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                    Comment


                      #11
                      I can do that Brandon and my guess is that will fix the problem.

                      But it sweeps the real issue under the rug. The export functionality is looking for GlobalSuppressions.dll for some reason. Why? Should it or should it not need that file? If it doesn't need it, why would it claim that it does need it? Why wouldn't you want to know that?

                      Comment


                        #12
                        Hello traderpards,

                        Thanks for your note.

                        Since the GlobalSuppressions.dll file is not a file that comes default with NinjaTrader, there is nothing specific that we could advise as to the cause of this error message.

                        Following the steps in post # 10 would rule out that this is a NinjaTrader-specific issue. Once we rule out this is a NinjaTrader-specific issue, you could go through each custom NinjaScript on the old environment to see what file might be causing the error to occur in that environment. This issue generally occurs when a NinjaScript file is referencing the .dll mentioned in the error.

                        Let me know if I may assist further.
                        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

                        Comment


                          #13
                          I never had this problem until my security stuff from SecureTeam expired. It's been three days since I first emailed them and they still haven't bothered to reply. It's probably not "them" but "him/her" and I'm guessing he doesn't bother checking anything until he feels like it.

                          Since you recommend them in your pages, https://ninjatrader.com/support/help...l_security.htm you should probably know they are unresponsive.

                          If/when they finally grace me with their reply, I will apply that and if it works, great. If it doesn't then I'll rebuild my Ninjatrader environment.

                          Comment


                            #14
                            All right... figured it out after about 4 hours. Somehow, GlobalSuppressions.cs ended up in my Custom directory. Don't ask me how it got there, I've never heard of it. I'm not sure but it looks like the Export functionality tries to find a DLL for the CS files in the Custom directory... (??) Not sure but when I got rid of that file, it exported.

                            Well, the bright side is I have a newly rebuilt Ninja environment, not that I needed it.

                            Comment


                              #15
                              Oh yeah.... I should probably mention SecureTeam finally got back to me. I licensed my obfuscation software and still had the problem. That's when I rebuilt my platform and finally figured it out.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              580 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              335 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              102 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              554 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              552 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X