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 / Web Services / December 2006

Tip: Looking for answers? Try searching our database.

C# client program gets timeout when calling web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jasonofford@gmail.com - 29 Nov 2006 19:28 GMT
I have a C# program that makes a simple call to a web service.  The web
service gathers data from a database and send it back to my program as
a DataSet.
- After opening the program and initiating the first method call to the
web service, I get back the data set perfectly, and am able to put it
in a data grid to display.
- The second time I call the same method, it "sometimes" gives me data
back, and sometimes I get a timeout exception.
- The third time always times out.

Overview of the code:

Button_Click_Method
    try
         create object reference to the web service
         set the URL to the desired web service location (from a text
field)
         execute a method from the web service depending on what the
user selects from a drop down
         display the data set in a data grid
    catch
         display message box with exception message

Any help would be greatly appreciated.
Catalin T - 07 Dec 2006 04:52 GMT
You could set the Timeout property to increase the time your client will wait
but I think you need to optimize the SQL query and bring the execution time
down. If you can't use async calls to your WS so that you don't block the
client app for a long time.

Regards,
Catalin

> I have a C# program that makes a simple call to a web service.  The web
> service gathers data from a database and send it back to my program as
[quoted text clipped - 20 lines]
>
> Any help would be greatly appreciated.

Rate this thread:







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.