6 Comments

Windows2008R2下VsphereClient登录出错

今天终于下定决心从xp升级到2008R2了,其他方面都很正常可就是在用vsphere登录的时候出现

“Error parsing the server “<server name” “clients.xml” file.”
“The type initializer for „VirtualInfrastructure.Utils.HttpWebRequestProxy‟ threw an exception.”2个错误,从vmware官方论坛找到了Windows7的解决办法。网上已经有很多翻译版林这里就不用中文说明了。
原文如下
1. Obtain a copy of %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\System.dll from a non Windows 7 machine that has .NET 3.5 SP1 installed.

2. Create a folder in the Windows 7 machine where the vSphere client is installed and copy the file from step 1 into this folder. For example, create the folder under the vSphere client launcher installation directory (+%ProgramFiles%\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib +).

3. In the vSphere 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. Save the file.

<?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>

3. Create a batch file (e.g. *VpxClient.cmd*) in a suitable location. In this file add a command to set the DEVPATH environment variable to the folder where you copied the System.dll assembly in step 2 and a second command to launch the vSphere client. Save the file. For example,

SET DEVPATH=%ProgramFiles%\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib
“%ProgramFiles%\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe”

4. (Optional) Replace the shortcut on the start menu to point to the batch file created in the previous step. Change the shortcut properties to run minimized so that the command window is not shown.

You can now use the VpxClient.cmd (or the shortcut) to launch the vSphere client in Windows 7.
Note that this workaround bypasses the normal .NET Framework loading mechanism so that assembly versions in the DEVPATH folder are no longer checked. Handle with care.
If you are using x64, replace all references to %ProgramFiles% with %ProgramFiles(x86)% in the steps that I described previously.

但是我在Windows2008R2上面每次都需要直接运行这个.cmd文件才能用vsphere登录,不然还是出现文章开头出现的问题。





你可能也会喜欢这些文字

发表在: vmware相关 标签为: . - 永久链接.

6 Responses to Windows2008R2下VsphereClient登录出错

  1. 阳光 says:

    @vmren
    在以前用的时候,update包还没有出来哦,现在可好解决了!

  2. vmren says:

    Windows XP 的 .net framework 自动更新后遇到同样问题, 安装 vSphere Client update 1 便可解决!

  3. 阳光 says:

    @北街
    客气了!记录了自己用esx过程中一些错误

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>