随笔分类 - WCF与初恋
摘要:今天在测试一个通过wcf服务查询数据的程序时,一直出现这个错误。这个错误是在:catch (System.ServiceModel.CommunicationException e) { XtraMessageBox.Show("对不起!客户端获取服务数据通信报错!请查看服务是否正常!"+e.HelpLink+","+e.InnerException+","+e.Message+","+e.StackTrace+","+e.TargetSite+"", "系统提示&
阅读全文
摘要:#region 给GridLookUpEdit填入数据 private void GetgridLookUpData() { var service = new SIMUBUSINESSLOGICDATA.SRSYSTEMBPJDQOperatorService.BpjdqSystemOperatorSystemClient(WebServiceApp.NetTcpBinding(), WebServiceApp.BpjdqSystemEndpoingAddress()); service.Open(); service.BeginGetTDictionaryInfoList(dele...
阅读全文
摘要:你会得到如下的异常提示分析异常,我们发现wcf序列化后返回的类型,并不是我们预想的List,而是Terminal[],解决方法,需要设置一下vs的默认配置服务引用修改数据类型中的集合类型,选择System.Collections.Generic.List(默认为System.Array)ok,重新编译一下我们的项目,F5运行一下,问题解决
阅读全文

浙公网安备 33010602011771号