Forum Discussion
Hello Rob,
Do you call the presented script code from a script extension? Please note that the DLL object you use in the code is not supported by the script extension engine. You can see the list of objects available in script extensions here.
Unfortunately, the script extension engine does not provide any straightforward way to call DLL routines. It is not designed for this purpose.
You can still call DLL routines via the dotNet object in your extensions as you used to. However, as the extension files cannot store any CRL Bridge information indeed, you may have to manually add the target DLL reference to the CLR Bridge list of any TestComplete project where you are planning to run your extension.
As for the AppDomain method, it is applied only to process objects. You can use it in your script extensions, but you need to create an application that has a reference to your DLL.