2011-02-14 16 views
2

我无法使用WCF测试客户端。我总是得到以下错误。WCF测试客户端不能在Windows 7上使用VS 2010 64位

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. 

我没有任何运气在google上找到解决方案。我希望stackOverflow蜂巢大脑可以帮助。

谢谢。

回答

3

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

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

感谢。而已。我有版本v4.0而不是v4.0.30319。那么sku =“。NETFramework,Version = v4.0”属性呢?需要吗?是否需要更改? – Chasler 2011-02-18 17:14:21

相关问题