Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using an obfuscated dll results in error

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

    Using an obfuscated dll results in error

    Hi,

    Installing an indicator with an unsigned, obfuscated dll results in error.

    Error compiling import assembly: error CS0009: Metadata file 'C:\Users\...\Documents\NinjaTrader 8\bin\Custom\xyz.dll' could not be opened -- Invalid public key.

    The same happens when this dll is manually copied to NinjaTrader 8\bin\Custom.

    Metadata file 'C:\Users\...\Documents\NinjaTrader 8\bin\Custom\xyz.dll' could not be opened -- Invalid public key.

    I had no problems using this dll in the prior release.

    Many thanks in advance.
    Last edited by AiTrading; 11-21-2024, 01:56 PM.

    #2
    Hello AiTrading,

    May I confirm you are exporting from NinjaTrader using release 8.1.3.1?

    May I confirm you have Agile.NET 6.9.1.2?

    May I have screenshots of the About window from each application to confirm this?

    May I confirm there are no enums used in the script?

    May I confirm the script is not looping through the DrawingObjects collection?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I am exporting from 8.1.3.1 and installing on 8.1.3.1.

      I do not use Agile.NET

      There are enums and two of them are global.

      Script is not looping through the DrawingObjects collection.
      Attached Files

      Comment


        #4
        Hello AiTrading,

        Using 3rd part software to obfuscate would be out of the realm of what NinjaTrader Support is able to assist with.

        When it comes to enums, if these are system enums in the core of NinjaTrader, it's necessary to make a custom enum and then cast to the correct enum type.

        This forum post discusses.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        596 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        343 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
        556 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        554 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X