异常错误:

通信对象System.ServiceModel.Channels.ServiceChannel 无法用于通信

解决方案:

后台 Code
try
{
  DBService.DataAccessServiceClient daclient = new DBService.DataAccessServiceClient();
    
...
    _daclient .Close();
}
catch (CommunicationException e)
{
    ...
    _daclient .Abort();
}
catch (TimeoutException e)
{
    ...
    _daclient .Abort();
}
catch (Exception e)
{
    ...
    _daclient .Abort();
    throw;
}
 

 

Tks:http://www.cnblogs.com/aehyok/archive/2013/03/29/2955379.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
猜你喜欢
  • 2022-01-19
  • 2021-07-18
  • 2021-05-22
  • 2022-12-23
  • 2021-10-12
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案