NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How many DLLs can a Sequence use?

Solved!
Go to solution

I have created a Class / DLL (FOO.DLL) that is executed by a Sequence File via the customized TOOLS menu.  The "hello world" version of this DLL works fine.  When I update this DLL to use classes from other classes / DLLs I have created (BAR.DLL) I get the error: Could not load file or assembly BAR, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

 

I added the BAR.DLL directory to the Configure->Search Directories... list and made sure its checkbox was selected, but it didn't make a difference. 

 

Is a DLL activated by a sequence file allow to use other "home-made" DLLs?  Or should a DLL activated by a sequence file be completly self contained?

0 Kudos
Message 1 of 3
(3,175 Views)
Solution
Accepted by topic author tlaford

.NET assemblies on which your specified assembly depends are loaded using the .NET framework's algorithm for finding assemblies, not the TestStand search directories. They are not directly loaded by TestStand; they are loaded by the .NET framework. Generally the .NET framework will find dependent assemblies if they are in the same directory as your specified assembly, are in the application base directory (i.e. the directory of the executable), or in the GAC.

 

Hope this helps,

-Doug

 

Message Edited by dug9000 on 05-11-2010 10:07 AM
0 Kudos
Message 2 of 3
(3,151 Views)

Thanks for the information.

 

I took a closer look at my sequence file and my DLL's makefile.  It turns out they were both looking in the wrong directory (obj instead of lib).

 

Thanks

0 Kudos
Message 3 of 3
(3,146 Views)