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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      55 views
      0 likes
      Last Post CarlTrading  
      Working...
      X