Forum Discussion

shubhangi's avatar
shubhangi
Contributor
13 years ago

Vestris.VMWareLib Error

Master has

TestComplete (8.7) on Win7(64 bit). CLR Bridge has the Vestris.VMWareLib.dll added

Vmware Workstation 7.1.4



I am trying to power on the virtual machines running on the master using.

function tt()

{

var vmHost = dotNET.Vestris_VMWareLib.VMWareVirtualHost.zctor();

vmHost.ConnectToVMWareWorkstation();

vmHost.ConnectToVMWareWorkstation()

var vmMachine = vmHost.Open("C:\\Users\\ss001\\Documents\\Virtual Machines\\ATVMWINXP3X32\\ATVMWINXP3X32.vmx");

vmMachine.PowerOn(5000)

}

This function fails with attached errors.



I tried to run the VB script code mentioned on the smartbear site, which worked fine. But I want it to be in Jscript.

Any help would be greatly appreciated.



Thanks

Shubhangi


  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Shubhangi,



    Try changing the Preferred architecture of the assembly hosting process option in the CLR Bridge settings to 32-bit.



    If this doesn't help, please post here screenshots of the CLR Bridge settings in your VBScript and JScript projects.