Power CLI 6.5.1 Connection error: Connect-VIServer : Could not load file or assembly ‘VMware.VimAutomation.Logging.SoapIntercepter,….

Power CLI 6.5.1 Connection error: Connect-VIServer : Could not load file or assembly ‘VMware.VimAutomation.Logging.SoapIntercepter,….

I was about to execute couple of PowerCLI scripts and I encountered some strange issue while trying to connect to my vCenter server. I was using PowerCLI 6.5.1 which releases as a PowerShell module and I stopped using the old installed PowerCLI prompt.

There were no changes to the computer which I was using and suddenly it stopped the functionality and was throwing this error message when connecting to the vCenter using Connect-VIServer command. Here is the error message:

Connect-VIServer : Could not load file or assembly ‘VMware.VimAutomation.Logging.SoapInterceptor, Version=1.0.0.646, Culture=neutral, PublicKeyToken=null’ or of its dependencies. The system cannot find the file specified. At line:1 char:1

I searched the reason behind this and I was able to find that one of my colleague has installed the old version of PowerCLI command prompt in the same computer.

I uninstalled the older version, closed the PowerShell window and tried to connect again. Fantastic! It was connected.

Actually, this was not quite a troubleshooting but spent some time before I started the actual planned work. So I hope this will help someone to get things done easily without wasting time.

Click to rate this post!
[Total: 15 Average: 5]

8 responses

  1. Deanna Avatar
    Deanna

    So many thanks! This saved me.

  2. daisbrown Avatar
    daisbrown

    This helped me as well ! thanks!

  3. Spiderakka Avatar
    Spiderakka

    Thanks, helped me too.

  4. jsmis Avatar
    jsmis

    Same here!

  5. Fredrik Simons Avatar
    Fredrik Simons

    Brilliant! Thank you. I spent about an hour trying to solve this and your solution worked 🙂

    1. Aruna Lakmal Avatar

      Thank you very much for your kind words Fredrik. Indeed, that was my ultimate goal with my blog.

  6. peter Avatar
    peter

    Thanks a lot! I was troubleshooting for about an hour before i discovert your post…

    1. Aruna Lakmal Avatar

      That’s great! Glad I could help!

Leave a Reply

Your email address will not be published. Required fields are marked *