WCF测试客户端无法在Windows 7 64位上使用VS 2010

时间:2011-02-14 23:35:20

标签: wcf visual-studio-2010 windows-7 64-bit wcftestclient

我无法使用WCF测试客户端。我总是得到以下错误。

Error: Cannot load reference assembly 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'    
Cannot load file C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll as an Assembly. Check the FusionLogs for more Information.
Could not load file or assembly 'file:///C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll' or one of its dependencies.
This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

我没有运气在谷歌找到解决方案。我希望stackOverflow蜂巢大脑可以提供帮助。

感谢。

1 个答案:

答案 0 :(得分:3)

如果我没弄错,您需要在app.config文件的<configuration>元素中添加运行时版本设置:

<startup>
  <requiredRuntime version="v4.0.30319" />
</startup>