title: VMware vCenter API with C# - InitiateFileTransferToGuest fails
body: <p>I'm trying to use the InitiateFileTransferToGuest method to send a file to a VM. Unfortunately, I'm getting stuck. Here's the related code where VClient is the VimClient with an already successfull connection:</p>
  
  <pre><code>GuestOperationsManager VMOpsManager = new GuestOperationsManager(VClient, VClient.ServiceContent.GuestOperationsManager);
  GuestFileManager VMFileManager = new GuestFileManager(VClient, VClient.ServiceContent.FileManager);
  GuestAuthManager VMAuthManager = new GuestAuthManager(VClient, VClient.ServiceContent.AuthorizationManager);
  
  NamePasswordAuthentication Auth = new NamePasswordAuthentication()
  {
      Username = "username",
      Password = "password",
      InteractiveSession = false
  };
  
  VMAuthManager.ValidateCredentialsInGuest(CurrentVM.MoRef, Auth);
  
  System.IO.FileInfo FileToTransfer = new System.IO.FileInfo("C:\\userlist.txt");
  GuestFileAttributes GFA = new GuestFileAttributes()
  {
      AccessTime = FileToTransfer.LastAccessTimeUtc,
      ModificationTime = FileToTransfer.LastWriteTimeUtc
  };
  
  string TransferOutput = VMFileManager.InitiateFileTransferToGuest(CurrentVM.MoRef, Auth, "C:\\userlist.txt", GFA, FileToTransfer.Length, false);   
  </code></pre>
  
  <p>First error shows up when getting to the ValidateCredentialsInGuest method. I get this message:</p>
  
  <blockquote>
    <p>An unhandled exception of type 'VMware.Vim.VimException' occurred in VMware.Vim.dll Additional information: The request refers to an unexpected or unknown type.</p>
  </blockquote>
  
  <p>If I remove that validation, I get the same error when trying to run InitiateFileTransferToGuest. I've been browsing the API documentation, and threads in VMware forums and a lot of places to be honest. The only pieces of code I've seen posted where it works were in Java and Perl, but the API implementation is a little different than C#. Any idea where to look?
  Thank you!</p>