首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

WCFServiceClient 使用有关问题

2013-11-16 
WCFServiceClient 使用问题WCFServiceClient wcfServiceProxy new WCFServiceClient(WSHttpBinding_IWC

WCFServiceClient 使用问题
WCFServiceClient wcfServiceProxy = new WCFServiceClient("WSHttpBinding_IWCFService");
wcfServiceProxy.InsertRecorders(os, oi, ou);
 wcfServiceProxy.Close();

 wcfServiceProxy.Open();
wcfServiceProxy.InsertRecorders(ps, pi, pu);
程序运行到open处报错:无法访问已释放的对象。
请哪位兄弟解释一下 难到每次使用都要new 一个对象么 
WCFServiceClient 的close open 都是干啥用的   webservice net
[解决办法]
个人认为需要先看 服务端和客户端遵循的协议才能判断,如果是http 估计你不close()问题也不大

热点排行