using (ChannelFactory<IWCF_DataService> cf = new ChannelFactory<IWCF_DataService>(point))
{
IWCF_HTISDataService client = cf.CreateChannel();
client.ConnectTest();
cf.Close();
strResult = "OK";
}为什么在本机调试成功,放到 远程服务器上执行ConnectTest()报错,提示通信对象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为其处于“出错”状态。
{
IWCF_HTISDataService client = cf.CreateChannel();
client.ConnectTest();
cf.Close();
strResult = "OK";
}为什么在本机调试成功,放到 远程服务器上执行ConnectTest()报错,提示通信对象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为其处于“出错”状态。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货