C# vmware

Radim88 used Ask the Experts™

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=, 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
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
hii ,
Try the below solutions and let me know,

SOlution 1:

A discussion at vmwaretasks.codeplex.com on this error

Check the below notes from microsoft more about this error in generic

Solution 2:

Sample project at code project

Hope it helps :)



Thanks :-) Its .net 3.5.


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial