473,385 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Windows Application close connection with webservice

Hi all
i wrote a windows app with c# which consumes a web-service also
written in c#. i wrote a method in web-service like this.
public function Test()
{
System.Threading.Thread.Sleep(10*60*100);
return true;
}
When i call this method from windows application, it time-outs after
appx. 2 minutes, win. app. doesn't wait for the response and ends the
connection.
What is the cause of this problem?

Mar 27 '07 #1
1 3045
Perhaps this may help:
http://blogs.msdn.com/engelsr/articles/497902.aspx

Usually its caused by your client timeout not being set to longer than you
expect your web method to take to process the request and the client
terminates the call

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
<en*********@gmail.comwrote in message
news:11*********************@y80g2000hsf.googlegro ups.com...
Hi all
i wrote a windows app with c# which consumes a web-service also
written in c#. i wrote a method in web-service like this.
public function Test()
{
System.Threading.Thread.Sleep(10*60*100);
return true;
}
When i call this method from windows application, it time-outs after
appx. 2 minutes, win. app. doesn't wait for the response and ends the
connection.
What is the cause of this problem?

Mar 27 '07 #2

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

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
6
by: @win | last post by:
Hello, I'm creating a windows service with VB.net. (vs 2003) I want this service to connect (or check the status of the connection) to the internet via a ISDN modem connection (standard dailup)...
0
by: azerty | last post by:
Hello I develop an application which must call a WebService on a server (develop with ASP.NET framework) If I call this application from XP client station, no problem occurs BUT if i call...
0
by: Andrew Dowding | last post by:
Hi Everybody, I have been looking at problems with my Windows Forms C# application and it's little Jet 4 (Access) database for the last few days. The Windows Forms app implements a facade and...
3
by: Manoj Kumar | last post by:
I have a web service that gets data from clients. It appears that each time a client connects to the webservice, a new connection/session is created on the server side (IIS 5.1). After 10 calls to...
2
by: Genojoe | last post by:
I have a Windows Service (VB.NET) that runs 24/7. It contacts a Web Service (VB.NET on IIS). As long as we send requests to the Web Service at least once every 15 minutes, everything works fine....
1
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
0
by: krishnangopi | last post by:
i have developed a webservice in Asp.Net(using Vb.Net).to test the webservice a sample GUI windows application was developed.i will be fetching data from server to client in the form of XML String...
7
by: GD | last post by:
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.