This week Iām delivering one of the first VMware vSphere ICM courses in the Netherlands. Everything is going great but one of my students had some problems when he tried to connect with the vSPhere client to an ESXi server. The error message was āunable to connect to the remote serverā even though he could ping the server. I told him to start the vSphere-Client with the following options.
VpxClient.exe -log +sd
After investigating the log files at: C:\Users\Paul Smit\AppData\Local\VMware\vpx vi-client.txt, Paul Smit found the following error.
[viclient:ErrorĀ Ā ] 2009-07-07 13:15:14.930Ā RMI Error Vmomi.ServiceInstance.RetrieveContent - 2
<Error type="VirtualInfrastructure.Exceptions.ConnectionError">
Ā <Message>The request failed because of a connection failure. (Unable to connect to the remote server)</Message>
Ā <InnerException type="System.Net.WebException">
Ā Ā Ā <Message>Unable to connect to the remote server</Message>
Ā Ā Ā <InnerException type="System.Net.Sockets.SocketException">
Ā Ā Ā Ā Ā <Message>The attempted operation is not supported for the type of object referenced</Message>
Ā Ā Ā Ā Ā <ErrorCode>10045</ErrorCode>
Ā Ā Ā Ā Ā <NativeErrorCode>10045</NativeErrorCode>
Ā Ā Ā Ā Ā <SocketErrorCode>OperationNotSupported</SocketErrorCode>
Ā Ā Ā </InnerException>
Ā Ā Ā <Status>ConnectFailure</Status>
Ā </InnerException>
Ā <Title>Connection Error</Title>
Ā <WebExceptionStatus>ConnectFailure</WebExceptionStatus>
Ā <SocketError>OperationNotSupported</SocketError>
</Error>
After some Binging the Resolution was a WinSock repair.:
http://support.microsoft.com/kb/811259 (WinSock Repair)
(via: http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework/topic51407.aspx)