Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Web Service error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fresno Bob - 03 Feb 2008 21:35 GMT
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.
George Ter-Saakov - 04 Feb 2008 18:01 GMT
sounds like Dispose will help...

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

George.

> 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
[quoted text clipped - 14 lines]
>
> Regards, Chris.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.