Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error installing compiled assemblies

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

    Error installing compiled assemblies

    Hi,

    I've come across this a few times and wonder what is the best way forward? I have a couple indicators that will refer to another of my indicators. If I compile these 2 indicators (separately), it (correctly I guess) bundles the indicator it calls. Problem though, when I go to install the 'other' indicator that uses the same dependency, I get these types of errors

    2019-10-13 14:48:20:884 WARNING: Error compiling import assembly: c:\Users\xxx2.cs(35,11) : error CS0433: The type 'NinjaTrader.NinjaScript.Indicators.Vxx' exists in both 'c:\Users\Ix\Documents\NinjaTrader 8\bin\Custom\xls.dll' and 'c:\Users\x\Documents\NinjaTrader 8\bin\Customxxx.dll'

    Which, given it's the same indicator, really doesn't matter to me, but it still prevents the install

    What's the suggested way around this, please? Thanks.

    #2
    Hello pjsmith,

    Thanks for your post.

    I would recommend exporting the dependent indicator in an assembly of its own. When you want to export an assembly package that uses this indicator, please do the following:

    1. Export the indicator as its own assembly
    2. Remove the indicator's source code from your platform
    3. Import the DLL for the indicator.
    4. Export your DLL which uses the code from the DLL. When exporting this DLL, please add a reference to the assembly which contains the dependent indicator.

    The new DLL will require the dependent DLL to be loaded first, but will avoid conflicting instances of the indicator between separate assemblies.

    I look forward to being of further assistance.

    Comment


      #3
      Got it (I think! ). Thanks,

      Comment

      Latest Posts

      Collapse

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