I heard a Problem in launching vSphere Client 4.0 in Windows 7 or Windows 2008 R2. While launching vSphere client application is giving parsing error
**** Somthing like ?Error parsing the server "<server_name>" "clients.xml" file. ****
On Click Ok button. Another error message is displaying
?The type initializer for VirtualInfrastructure.Utils.HttpWebRequestProxy' threw an exception.
To fix this bug follow these steps.
1) Create a folder Library on the Windows 7 machine where the vSphere client is installed, basically it is in %rootdirectory%:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Library and copy System.dll into this folder. You can get system.dll from any XP machine in %root_dir%\Windows\Microsoft.NET\Framework\v2.0.50727\
2) In the %root%:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher directory, open the VpxClient.exe.config file in a text editor and add a <runtime> element and a <developmentMode> element as shown below. (or just use the one I included)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.net>
<connectionManagement>
<clear/>
<add address="*" maxconnection="8" />
</connectionManagement>
</system.net>
<appSettings>
<add key = "protocolports" value = "https:443"/>
</appSettings>
<runtime>
<developmentMode developerInstallation="true"/>
</runtime>
</configuration>
Half job done
3) Now,create a command file "VpxClient.cmd" and put these line of code into VpxClient.cmd file.
@echo off
SET DEVPATH=%Your_root%:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Library
"=%Your_root%:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe"
4) Now create shortcut to VpxClient.cmd" to your desktop.
Use this shortcut to run your application.
Please find the attached file for quick replacement / reference.
-- Shakti khurana