0 Replies Latest reply on Dec 17, 2018 9:02 AM by p572

    Getting weird dll error

    p572 Lurker

      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=, Culture=neutral, PublicKeyToken=null''. The system cannot find the file specified.File name: ''VMware.System.Private.ServiceModel, Version=, 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?