Ok, thanks very much for the 'super-quick' help!!!!
Ram.
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:eaGNA2WSEHA.2908@TK2MSFTNGP10.phx.gbl...[color=blue]
> 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]
> -
mvp@spam.guard.caspershouse.com
>
> "Ram Baruch" <ram_ba_ruch@newsgroups.nospam> wrote in message
> news:u4gF2wWSEHA.1472@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hi,
> > What I meant is the time that WebClient.Download() takes- I don't care[/color][/color]
it[color=blue][color=green]
> > takes a lot of time, all I care is that I won't get any exceptions for[/color][/color]
it[color=blue][color=green]
> > when it does take a long period of time.
> > Regards,
> > Ram.
> >
> > "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote[/color]
> in[color=green]
> > message news:O%23PKftWSEHA.3812@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > Ram,
> > >
> > > I am not sure which timeout you are referring to? Do you mean the[/color]
> > call,[color=darkred]
> > > or the download timeout? You don't have to worry about the call[/color][/color][/color]
timing[color=blue][color=green]
> > out[color=darkred]
> > > (unless it is a remoted call, possibly).
> > >
> > > As for a download timeout, I don't think that the WebClient will[/color][/color]
> give[color=green][color=darkred]
> > > you the flexibility you need in setting the timeout. You might want[/color][/color][/color]
to[color=blue][color=green]
> > use[color=darkred]
> > > the HttpWebRequest and HttpWebResponse classes, as they will allow you[/color][/color]
> to[color=green][color=darkred]
> > > set timeouts for the download (or eliminate them, I think).
> > >
> > > Hope this helps.
> > >
> > >
> > > --
> > > - Nicholas Paldino [.NET/C# MVP]
> > > -
mvp@spam.guard.caspershouse.com
> > >
> > > "Ram Baruch" <ram_ba_ruch@newsgroups.nospam> wrote in message
> > > news:%230mDmoWSEHA.1544@TK2MSFTNGP09.phx.gbl...
> > > > Hi,
> > > > I have a question:
> > > > I made a windows service (using VS wizard). All it does is to[/color][/color][/color]
connect[color=blue]
> to[color=green][color=darkred]
> > > my
> > > > site every X seconds and check if there is anything new to download.[/color][/color]
> If[color=green][color=darkred]
> > > > there is- it downloads a big file (using WebClient.Download() ). On[/color][/color][/color]
MY[color=blue][color=green][color=darkred]
> > > > computer it doesn't take a ling time, but on other computers it may[/color][/color]
> take[color=green][color=darkred]
> > > > some time (lets say 10 minutes). Is there any chance that after a[/color][/color]
> while[color=green][color=darkred]
> > > .net
> > > > will raise an exception that the server is not responding or a[/color][/color][/color]
similar[color=blue][color=green][color=darkred]
> > > > exception (I remember this from COM...) ?
> > > > If I will get an exception, is there anyway to avoid it by[/color][/color][/color]
increasing[color=blue][color=green]
> > the[color=darkred]
> > > > timeout somehow?
> > > > Regards,
> > > > Ram.
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]