I'm trying to make a simple application, yet it crashes as soon as I try to connect.
When I do the following:
var Client = new VimClientImpl();
Client.IgnoreServerCertificateErrors = true;
This is the exception I get on the "Connect" line:
System.IO.FileNotFoundException: Could not load file or assembly ''VMware.System.Private.ServiceModel, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null''. The system cannot find the file specified.File name: ''VMware.System.Private.ServiceModel, Version=18.104.22.168, Culture=neutral, PublicKeyToken=null'' at VMware.Vim.VimClientImpl.Connect() at VmActions.vSphereClient..ctor(String hostname, String username, String password)
I tried looking manually for that dll, and yes, it is missing from files. File with the same name is present in other places, like in "VMware.VimAutomation.Vds" folder, but the version is different(4.4.0).
Can anyone please help me understand what is going on? Why would it need older version of that dll? Why is it missing and what can I do about it?