473,466 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Web Service error

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.
Feb 3 '08 #1
1 1069
sounds like Dispose will help...

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


"Fresno Bob" <no****@nospam.comwrote in message
news:OJ**************@TK2MSFTNGP04.phx.gbl...
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.

Feb 4 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Fraser | last post by:
Hi We are trying to debug a problem with services created using py2exe. It seems that these problems have arisen after services were installed and removed a few times. OK, first the actual...
18
by: jabailo | last post by:
I wrote a program that loops through a file of records. It parses each line in the file and sends them to a web service that inserts them into an AS400DB2 database using Asynch calls. This is...
9
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code...
4
by: Keith | last post by:
I'm in the same boat as the fellow who posted this message back in August: Title : Windows Service, How does one make a service "fail" properly? Author : Ross Bennett Group :...
5
by: John | last post by:
Hi I am trying to get web reference to my first (!) web service which is on a remote host. I am getting the following error; Server Error in '/' Application. Runtime Error Description: An...
2
by: timsohn | last post by:
I am trying to deploy the most basic web service (Hello World) example to my website, but am having significant trouble doing so. Here is what I am doing: 1) Create a New Web Service in VS 2005...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
4
by: Jason Richmeier | last post by:
I am sure this has been asked at least once before but I could not find anything when searching. If I set the value of the ExitCode property to 1066 for a windows service, the text "A service...
0
by: Jeova Almeida | last post by:
Hello, I created a simple web service for testing purpose in Visual Studio 2005: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="WSTest" %> using System;
0
by: Jeova Almeida | last post by:
Hello, I created a simple web service for testing purpose in Visual Studio 2005: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="WSTest" %> using System;
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.