473,626 Members | 3,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

windows server timeout

Hi,
I have a question:
I made a windows service (using VS wizard). All it does is to connect to my
site every X seconds and check if there is anything new to download. If
there is- it downloads a big file (using WebClient.Downl oad() ). On MY
computer it doesn't take a ling time, but on other computers it may take
some time (lets say 10 minutes). Is there any chance that after a while .net
will raise an exception that the server is not responding or a similar
exception (I remember this from COM...) ?
If I will get an exception, is there anyway to avoid it by increasing the
timeout somehow?
Regards,
Ram.
Nov 16 '05 #1
4 1749
Ram,

I am not sure which timeout you are referring to? Do you mean the call,
or the download timeout? You don't have to worry about the call timing out
(unless it is a remoted call, possibly).

As for a download timeout, I don't think that the WebClient will give
you the flexibility you need in setting the timeout. You might want to use
the HttpWebRequest and HttpWebResponse classes, as they will allow you to
set timeouts for the download (or eliminate them, I think).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ram Baruch" <ra*********@ne wsgroups.nospam > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi,
I have a question:
I made a windows service (using VS wizard). All it does is to connect to my site every X seconds and check if there is anything new to download. If
there is- it downloads a big file (using WebClient.Downl oad() ). On MY
computer it doesn't take a ling time, but on other computers it may take
some time (lets say 10 minutes). Is there any chance that after a while ..net will raise an exception that the server is not responding or a similar
exception (I remember this from COM...) ?
If I will get an exception, is there anyway to avoid it by increasing the
timeout somehow?
Regards,
Ram.

Nov 16 '05 #2
Hi,
What I meant is the time that WebClient.Downl oad() takes- I don't care it
takes a lot of time, all I care is that I won't get any exceptions for it
when it does take a long period of time.
Regards,
Ram.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:O%******** ********@TK2MSF TNGP11.phx.gbl. ..
Ram,

I am not sure which timeout you are referring to? Do you mean the call, or the download timeout? You don't have to worry about the call timing out (unless it is a remoted call, possibly).

As for a download timeout, I don't think that the WebClient will give
you the flexibility you need in setting the timeout. You might want to use the HttpWebRequest and HttpWebResponse classes, as they will allow you to
set timeouts for the download (or eliminate them, I think).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ram Baruch" <ra*********@ne wsgroups.nospam > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi,
I have a question:
I made a windows service (using VS wizard). All it does is to connect to

my
site every X seconds and check if there is anything new to download. If
there is- it downloads a big file (using WebClient.Downl oad() ). On MY
computer it doesn't take a ling time, but on other computers it may take
some time (lets say 10 minutes). Is there any chance that after a while

.net
will raise an exception that the server is not responding or a similar
exception (I remember this from COM...) ?
If I will get an exception, is there anyway to avoid it by increasing the timeout somehow?
Regards,
Ram.


Nov 16 '05 #3
Ram,

As long as you are still getting content, I don't see why an exception
would be thrown. If you were waiting, and no content was received, then I
would expect it to be thrown.

Once again, if you need control over this timeout, then I would
recommend using the HttpWebRequest class, where you have more fine-grained
control over this.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ram Baruch" <ra*********@ne wsgroups.nospam > wrote in message
news:u4******** ******@TK2MSFTN GP09.phx.gbl...
Hi,
What I meant is the time that WebClient.Downl oad() takes- I don't care it
takes a lot of time, all I care is that I won't get any exceptions for it
when it does take a long period of time.
Regards,
Ram.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:O%******** ********@TK2MSF TNGP11.phx.gbl. ..
Ram,

I am not sure which timeout you are referring to? Do you mean the

call,
or the download timeout? You don't have to worry about the call timing

out
(unless it is a remoted call, possibly).

As for a download timeout, I don't think that the WebClient will give
you the flexibility you need in setting the timeout. You might want to

use
the HttpWebRequest and HttpWebResponse classes, as they will allow you to set timeouts for the download (or eliminate them, I think).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ram Baruch" <ra*********@ne wsgroups.nospam > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi,
I have a question:
I made a windows service (using VS wizard). All it does is to connect to
my
site every X seconds and check if there is anything new to download.
If there is- it downloads a big file (using WebClient.Downl oad() ). On MY
computer it doesn't take a ling time, but on other computers it may take some time (lets say 10 minutes). Is there any chance that after a

while .net
will raise an exception that the server is not responding or a similar
exception (I remember this from COM...) ?
If I will get an exception, is there anyway to avoid it by increasing

the timeout somehow?
Regards,
Ram.



Nov 16 '05 #4
Ok, thanks very much for the 'super-quick' help!!!!
Ram.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:ea******** ******@TK2MSFTN GP10.phx.gbl...
Ram,

As long as you are still getting content, I don't see why an exception
would be thrown. If you were waiting, and no content was received, then I
would expect it to be thrown.

Once again, if you need control over this timeout, then I would
recommend using the HttpWebRequest class, where you have more fine-grained
control over this.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ram Baruch" <ra*********@ne wsgroups.nospam > wrote in message
news:u4******** ******@TK2MSFTN GP09.phx.gbl...
Hi,
What I meant is the time that WebClient.Downl oad() takes- I don't care it
takes a lot of time, all I care is that I won't get any exceptions for it when it does take a long period of time.
Regards,
Ram.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:O%******** ********@TK2MSF TNGP11.phx.gbl. ..
Ram,

I am not sure which timeout you are referring to? Do you mean the

call,
or the download timeout? You don't have to worry about the call timing
out
(unless it is a remoted call, possibly).

As for a download timeout, I don't think that the WebClient will give you the flexibility you need in setting the timeout. You might want
to use
the HttpWebRequest and HttpWebResponse classes, as they will allow you to set timeouts for the download (or eliminate them, I think).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Ram Baruch" <ra*********@ne wsgroups.nospam > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
> Hi,
> I have a question:
> I made a windows service (using VS wizard). All it does is to
connect to my
> site every X seconds and check if there is anything new to download. If > there is- it downloads a big file (using WebClient.Downl oad() ). On
MY > computer it doesn't take a ling time, but on other computers it may

take > some time (lets say 10 minutes). Is there any chance that after a while .net
> will raise an exception that the server is not responding or a similar > exception (I remember this from COM...) ?
> If I will get an exception, is there anyway to avoid it by

increasing the
> timeout somehow?
> Regards,
> Ram.
>
>



Nov 16 '05 #5

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

Similar topics

5
12890
by: Isaac Raway | last post by:
Hello. I'm writing a Python program that connects to servers through telnetlib to execute a few commands. I've discovered that some of the servers that I have to connect to with this program run only SSH, so I need to add support for SSH to the program. I'm looking for a library that behaves similarly to telnetlib for SSH connections. Does anyone know of one? I was going to try using pexpect to control the Windows telnet command, but...
0
1068
by: Elbert Lev | last post by:
Python 2.3 Windows NT 4.0 (512M, PIII-500) Here are results of performance comparison of several strategies of multiple socket handling (server side). To do this comparison I've written 3 servers and a client: 1. thread per connection (SocketServer based) 2. asynchat based 3. asynchat + worker thread.
2
393
by: Dave | last post by:
I have developed a VB.net application that transfers a SOAP wrapped message to another server securely(using SSL and sever/client certificates). When I run this app from a Windows 2000 Professional box everything works as expected, the secure channel is established and the message is sent properly. When I use the exact same app on the Windows 2000 Server(running IIS) box the app does not work properly. I have used a packet sniffer to...
0
1080
by: Tom Smit | last post by:
We're having a problem where our application is timing out after 60 minutes no matter what type of activity is occuring. A user can be in the middle of a server call and it will timeout after 60 minutes. This only occurs with Windows authentication and not forms based. We have the following in the web.config: <authentication mode="Windows"> <forms loginUrl="Login.aspx" name="RiskLogin"
0
1658
by: Seth | last post by:
For some reason my service works fine except that it will create the file in my c drive, but will not write to the file. Sorry if this is a duplicate post, i have found some that ask the same question - but noone seems to answer. Do i need to do anything specific to write to a text file from a windows service, much appreciated.
3
7480
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work on her local machine. Everything looks pretty good. OpenLDAP/cygwin works great. PostgreSQL works great. Apache runs. PHP runs. But when I try to connect to my PostgreSQL server using PHPPgAdmin, I
2
2378
by: WB | last post by:
Hi, I have a Windows Application in C# that has some long-running codes. When I tried to run the program in debug mode, it eventually gave an error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. How do I determine the cause? How do I increase the timeout limit of the application?
14
7027
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that sql server resides on is not reachable. The error is different depending on the connection string that I use. If I use the following connection string: "server=192.1.1.1; Initial Catalog=master; uid=The_User; password=The_Password; Connect...
0
8267
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported the console application to WinForms and also got that to work properly. My next move was to host the WCF service in a Windows service application. I believe I have that working correctly, but I can't for the life of me get a client to connect...
0
8266
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8199
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8705
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8365
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7196
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.