Although I haven't tried different environments, I don't see a reason why
this would be true. The backgroundworker is a wrapper for threads - threads
work everywhere. Now you may have some issues with webforms due to the
timing of the long running tasks and the availability of the context object
however that is not related to it functioning correctly. I'll check tonight
to make sure - there's always a chance that I'm wrong.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @
www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------
"Michel Meex" <(E-Mail Removed)> wrote in message
news:F7202F0E-FEBA-4FEB-8662-(E-Mail Removed)...
> Is it true that a backgroundworker will only work in winforms
applications,
> and not in console applications and/or windows services ?
>
> If have an object (Task) that instantiates different backgroundworker
> instances. If I start the task object from a windows form, it works fine.
If
> I do this from a windows service, it will start the Task object, but will
> never fire my real object.
>
> Any help would be nice.
>