Link to home
Start Free TrialLog in
Avatar of Radim88
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=1a2e7e25925ba452' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

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");

        }
    }
}

Open in new window


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
Avatar of byfour
byfour
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Radim88
Radim88

ASKER

Hi,

Thanks :-) Its .net 3.5.

BR