05-10-2010 02:54 PM
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?
Solved! Go to Solution.
05-11-2010 10:07 AM - edited 05-11-2010 10:07 AM
.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
05-11-2010 10:20 AM
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