Web Service error

F

Fresno Bob

Hi I have a web service that calls the Site Server 2008 web service
returning an error 'An operation on a socket could not be performed because
the system lacked sufficient buffer space or because a queue was full
194.129.129.3:80 ' This is the web service method.

Public Function Search(ByVal strSearchCriteria As String) As DataSet
Dim queryService As New SiteSearch.QueryService
queryService.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim queryResults As System.Data.DataSet = queryService.QueryEx(qXMLString)
Return queryResults
End Function

Could it be something as simple as 'queryService.Dispose()' resolve this. As
this error takes quite a while to appear I won't be sure if just adding
'queryService.Dispose()' is actually solving it. I was wondering if anyone
else had had the problem.

Regards, Chris.
 
G

George Ter-Saakov

sounds like Dispose will help...

Ps: You MUST call Dispose for any object that implements IDisposable
interface when object goes out of scope.


George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top