读书人

unable to read from the transport c

发布时间: 2012-12-14 10:33:08 作者: rapoo

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实体类所用的数据库连接
[解决办法]
但是我这个没有用到数据库的链接啊,只是用于测试手持设备是否在链接状态用的

读书人网 >Web Service

热点推荐