Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hai ...


Iam developing a web application which should be run automatically to the schedule time. so for that is there any need to use windows service in our web application to run the application automatically.Actually i dont have any idea on windows service so pls can any body suggest me how to do or else if anybody knows pls send me sample links that how to call a windows service in web application.

Thanks & Regards
Posted
Updated 21-May-17 21:51pm

1 solution

Well you might want to look deeply into ASP.Net Remoting Overview[^].

Also you will most probably need to use the ServiceController Class.
Here[^] is the MSDN link for it.
An example which shows you how to Start, Stop and Restart Windows Service [C#][^].

An extra link about Remoting: Calling a Windows Service from ASP.NET via Remoting & IpcChannel[^]

Another option if you do not have a Windows Service: Simulate a Windows Service using ASP.NET to run scheduled jobs[^]

Good luck,
OI
 
Share this answer
 

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