How to fix VSphere Client could not connect to VCenter Server ?

Problem Statement:Icon

I have a VMware environment running ESXi 5.x running few VMs when I am trying to connect to Vpshere Client it was working fine yesterday, this morning I saw an error connection to VCenter Server. I can not able to connect to VMs from VMware Sphere Client and VSphere Web URL as well.

I am going to discuss probably most of the use-cases in depth what all possible scenarios for the cause of these issues with possible error and troubleshooting steps. Let’s Get Started.

How to fix and what all could be the possible scenario lets discuss in detail?

Error Messages:

  • VMware Console has disconnected …attempting to reconnect.
  • The console has been disconnected. Close this window and relaunch the console to reconnect.
  • The type initializer for threw an exception for ‘VirtualInfrastructure. Utils. ClientsXml’ threw an exception.
  • Cannot connect to vCenter Server 5.x using the vSphere Client – unknown error.

Possible Causes:

1)  Make sure you are running the same version of VMWare ESXi Server & Client. VMware vCenter Server Verison &VSphere Client Version should be same.

2) The latest version of Microsoft .Net Framework Version required or .Net              Framework version causing the issue

3) Check for proxy settings (if set), have reset causes issues in connection.

4)  VMware services are stopped or need the restart to work as expected.

5)  Microsoft .Net latest Patch Tuesday could break and throw exception Virtual   Infrastructure.Utils.ClientsXml or Virtualinfrastructure.Utils.HttpWeb RequestProxy.

Troubleshooting Steps:

1)  The computer hosting vCenter Server has an active network connection.
2)  vCenter Server is actually running and vCenter Server is reachable.


3) You can resolve the hostname of the vCenter Server from your VMware View Connection Server.

4) Check if you have updated VMWare server from 5.x to 6.x, if yes? We need to reinstall the vsphere client to the latest version to fix it.

5) Restart the machine where Vsphere Client installed.

6) Run .NET Framework Setup Verification Tool to find .net release, causing issue run SFC /scannow to fix issues if any?

7) Login to VCenter Server and look for errors in log file vpxd-.log located at C:\Program Data\VMware\VMware VirtualCenter\Logs if any.

8) Login to the server and look for errors in log file viclient-*.log file located at %App Data%\Vmware\vpx\

Example:  From the log file we found the Access to the registry key ‘HKEY_CLASSES _ROOT \VpxClient’ is denied.



9)  Make sure you have proper rights [probably admins 😉 ] to access VMware Host or check with VMWare Admin if you don’t.

Launch Vmware Vsphere Client “Run As” Administrator to fix the issue.


10)   Check for disk space and/or file permission of your temp directory on VMWare Server. VMWare may be unable to create the necessary files in your %temp% directory which ‘will’ cause the exact error you are experiencing.

11) Check for VMware Services and make sure below services are working fine 🙂

VMWare Services

12) Now try to connect VMware Vsphere Client and Vsphere web URL both will work with charm!!

Thanks for reading 🙂 Do like, share & comment if you find useful.



How to enable SSH on ESXi via VSphere client and CLI

For remote troubleshooting or other stuff, you can enable SSH on your VMware ESXi 5.5 host. You can do this on the VMware ESXi host itself or you can do this directly from the VMware vSphere Client as well as using CLI commands as well. Let have a look one by one.

1) On the vSphere Client click on the configuration tabESx-1.png

2) Click on Security Profile , open the Properties tab so you can see the Security Profile properties and the Remote Access servicesesx-2


Select the SSH Service and click on Options. This will open up a new Windows where you can start the SSH service for your VMware ESXi 5.5 host and also set the startup properties.


Try to access your VMware vSphere ESXi host via SSH. If you have any problems to connect you should check the firewall policy as below.esx-5

Enable SSH by ROOT and Connecting via CLI

1) Login via Consoleroot.png

2) Have a backup of ssh config file as rename the file as sshd_config.origroot1.png

3) Open the ssh config file and edit the file and change the value of PermitRootLogin no to PermitRootLogin yesroot2.png

4) Now restart the ssh service by giving the command in the console as

#service sshd restart 

For more details :