简体   繁体   English

消耗WCF数据服务-出现错误“操作无法完成”

[英]Consuming WCF Data Service - getting error “Operation could not be completed”

Whenever I attempt to consume WCF Data Service (version 5.0 of WCF Data Services), the proxy generation fails with the error message: 每当我尝试使用WCF数据服务(WCF数据服务的5.0版)时,代理生成都会失败,并显示错误消息:

The operation could not be completed 操作无法完成

Any ideas? 有任何想法吗? The Data Service is built using VS2012, Entity Framework 5.0 and WCF Data Services 5.0. 使用VS2012,Entity Framework 5.0和WCF Data Services 5.0构建数据服务。 Client is Windows 8 built using VS2012. 客户端是使用VS2012构建的Windows 8。

I have also tried installing WCF Data service 5.3 installer but faces same issue. 我也尝试安装WCF数据服务5.3安装程序,但遇到相同的问题。

So basically I was facing issues on the entities which had a timespan datatype and throwed a "Operation cannot be completed" error while consuming the WCF data service in a Windows Store Client Library. 因此,基本上,我在使用时间跨度数据类型的实体上遇到了问题,并且在Windows Store客户端库中使用WCF数据服务时引发了“无法完成操作”错误。

So the solution to the issue whilst consuming the WCF Data service to Windows Store app is to install the "WCF Data Services 5.6.0 Alpha Tools Installer" available here 因此,在将WCF数据服务用于Windows Store应用程序的同时解决此问题的方法是在此处安装“ WCF数据服务5.6.0 Alpha Tools安装程序”

Installing this resolved the issues faced while consuming the service. 安装此程序可以解决使用服务时遇到的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM