Vb.net桌面应用程序中的问题 [英] Problem in Vb.net Desktop Application

查看:77
本文介绍了Vb.net桌面应用程序中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在vb.net桌面应用程序上工作.我正在运行查询以从数据库中获取数据.当数据行太多时,它将第一次执行该查询.在第二次执行它时,它给了我一个错误

Hello,

I am working on vb.net Desktop application. I am running a query to fetch data from database. When there are too many data rows, then it executes that query for the first time. on executing it for the second time, it gives me an error

The underlying connection was closed: An unexpected error occurred on a receive.


如何多次执行该查询?我正在使用Web服务.

提前谢谢.

Mrunal


How can I execute that query more than once? I am using web service.

Thanks in advance.

Mrunal

推荐答案

Protected Overrides Function GetWebRequest(uri As Uri) As WebRequest
	Dim myWebRequest As HttpWebRequest = DirectCast(MyBase.GetWebRequest(uri), HttpWebRequest)
	myWebRequest.KeepAlive = False
	Return myWebRequest 
End Function



看看这个:
http://support.microsoft.com/default.aspx?scid=kb;EN- US; 915599 [ ^ ]



And Look at this:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;915599[^]


这篇关于Vb.net桌面应用程序中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆