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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      68 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      151 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      100 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      288 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X