Hi All,
I have .NET driver for communication with our product via CAN bus using IXXAT driver.
It works fine if called from other c# classes not called from TestStand.
However, calling it from TestStand does return the following error:
Error: An exception occurred inside the call to .NET member 'GetDevices':
System.InvalidOperationException: GetEntryAssembly did not return a valid assembly reference
at Ixxat.Vci4.VciServer.LoadServer(String assemblyloadpath)
at Ixxat.Vci4.VciServer.Instance(String assemblyloadpath)
at CanLibrary.Communication.GetDevices() in C:\Projects ATE\TestStand Driver\Communication.cs:line 123
at libCan.Main.GetDevices() in C:\Projects ATE\libMantra\Class1.cs:line 14[Error Code: -2146233079, Code Module/User-defined error code. ]
Getting devices is standard IXXAT code:
IVciDeviceManager deviceManager = VciServer.Instance().DeviceManager;
devices = deviceManager.GetDeviceList();
foreach (IVciDevice device in devices)
{
DebugPrint(device.Description);
}
Red part causes that error.
Calling others function (not related to IXXAT) work fine.
Hope anynone had such issue in the past.
Thanks!