当前位置: 代码迷 >> Web Service >> unable to read from the transport connection,该怎么解决
  详细解决方案

unable to read from the transport connection,该怎么解决

热度:299   发布时间:2016-05-02 02:46:26.0
unable to read from the transport connection
我用wince 做了个小程序,链接WEB SERVICES
下面是代码:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.EnterpriseServices;
……………………
[WebMethod(TransactionOption = TransactionOption.RequiresNew)]
        public bool isconnect(string contect)
        {
            
            return true;
        }

///////////
wince 程序

try
 {
     bool i= web2.isconnect("1"); 
 } catch (Exception ex)
 {
      messagebox.show(ex.Message.ToString());   
 }


程序偶尔会出现  “unable to read from the transport connection”的错误,请问各位大大可有方法这个问题
------解决方案--------------------
更新下linq to sql实体类所用的数据库连接
------解决方案--------------------
但是我这个没有用到数据库的链接啊,只是用于测试手持设备是否在链接状态用的
  相关解决方案