Click here to Skip to main content
11,715,022 members (64,129 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET service
Hello all,

I have a web site and to this site I need to add a windows service to do some processes periodically. Is it possible to integrate something like this?

What I am thinking is including this service within my ASP.Net project.
I will create a web page which will be working as a configuration page. From that page i will change the win service interval how often it will send emails.. etc. When changes made in this page the database will be updated. The service will read these values from the database and depending on the values it will complete the tasks or I can add entries in the Cache and set an absolute expiry date time, or set a duration after which the item is removed from the cache to schedule this web service.

Is this a good way to integrate this functionality or any other better ways to implement this? Some example links will be really helpful. Thanks a lot.
Posted 28-Dec-11 9:46am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can't really integrate a Windows service with a web page, but using a database to specify the data used by the service is certainly viable, and is the way i would do it.
wonder-FOOL at 28-Dec-11 17:28pm
thanks John. I appreciate it.
Espen Harlinn at 30-Dec-11 9:11am
Good reply :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 530
1 Richard MacCutchan 275
2 Maciej Los 259
3 ManasKumarM 155
4 Frankie-C 115
0 Sergey Alexandrovich Kryukov 775
1 CHill60 415
2 Richard MacCutchan 405
3 Maciej Los 389
4 OriginalGriff 320

Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 28 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100