Radim88
asked on
C# vmware
Hello,
I am trying to connect vmware esxi using Visual studio 2010.
Project is x86, .net is set to 2.0. But I am still getting an error:
"Could not load file or assembly 'Interop.VixCOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a2e7e25925 ba452' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
code is:
I googled some stuff regarding it, It helped me, to use .net 2. and use x86. But I believe I added all references etc..
Pls advice
Many Thanks
I am trying to connect vmware esxi using Visual studio 2010.
Project is x86, .net is set to 2.0. But I am still getting an error:
"Could not load file or assembly 'Interop.VixCOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1a2e7e25925
code is:
using System;
using System.Collections.Generic;
using System.Text;
using Vestris.VMWareLib;
using Interop.VixCOM;
using VixCOM;
namespace VmWareConsole.net2
{
class Program
{
static void Main(string[] args)
{
VMWareVirtualHost vh = new VMWareVirtualHost();
vh.ConnectToVMWareVIServer ("xx", "root", "Pa$$word");
}
}
}
I googled some stuff regarding it, It helped me, to use .net 2. and use x86. But I believe I added all references etc..
Pls advice
Many Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks :-) Its .net 3.5.
BR