Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends. ....

kindly help me.

I've a put my web application project(Gmail.sln) in IIS.
For every 10 mins, I need to run this application in background automatically.
What is the best way????
In future, I will write a web service and calls that application for 10 mins.
But as of now, I need the solution. Do I need to set Timer in code???

How to do that ???? To run my app(.sln file) in IIS for every 10mins in background automatically without opening the project...
Posted

1 solution

You can simply create a windows service using the timer to achieve your requirement.
 
Share this answer
 
Comments
Sriram Ramachandran 9-Dec-13 2:56am    
I am sorry Ganesh.... Can you share some links to create windows service which has simple examples........ Because I am new in windows service...
Ganesh Raja 9-Dec-13 3:21am    
Refer this and change the timeframe accordingly...

http://stick2basic.wordpress.com/2013/02/22/how-to-schedule-a-c-windows-service-to-run-a-method-daily/
Sriram Ramachandran 9-Dec-13 4:32am    
thanks a lot ... i ll see to it .....
Sriram Ramachandran 9-Dec-13 8:30am    
hi ganesh ... I checked ....... but i dont think this is working for me .......... For each 10 mins, I ll update DB... When I check DB, the update hasn't happened.. What to do now ???? Any help pls
Ganesh Raja 9-Dec-13 9:41am    
Hi ,First create a sample windows service application with required time interval(Enable logging) and install and check the same.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900