If need to install a window service on a server where Visual Studio is not installed or you don’t have Visual Studio tools then follow the steps below
Windows Service: Command Text property has not been initialized When calling a SQL query in Windows service might throw an error
How to run a task asynchronously using Windows Service C# If you need to run something, let’s say every 10 minutes or hours we can use C# to develop a Windows Service in Visual Studio and that will do the job for us.
To debug a Windows Service once it has been installed follow the steps below 1) Copy the pdb files in the same folder where rest of the dlls are for Windows Service
First make sure you have all files you need to install a Windows Service (dll, sql, anything else needed) To install a Windows service use the command below