Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy with external dll compiling but not loading

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

    Strategy with external dll compiling but not loading

    I have a strategy with an external dll. It compiles fine, but give me the error "Error on calling 'Dispose' method for 'Risk.' Could not load file or assembly "VMAX.C.... or one of it's dependices." The dll has 3 file in the release folder, the main dll, a xml config file with a data connection string, and a pdb file. I added a reference to Ninja for the main dll but not other files since they are not dll files. I'm thinking the xml config file is necessary but don't know?

    Do I need to refactor the code to get rid of the config file?

    #2
    Hello,

    Thanks for the forum post.

    Unfortunately this level of integration is outside the bounds that I'm able to provide support for since it is not NinjaScript. If you are still unable to get it to compile it may be worth contacting a NinjaScript consultant that would have some more general c# programming knowledge and be able to assist.


    NinjaScript Consultants:
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X