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 installutil MyWindowService.exe First open Developer Command Prompt for Visual Studio andthen navigate … Read More
Windows Serive
How to debug a Windows Service in Visual Stdio once it is installed
To debug a Windows Service once it has been installed followthe steps below 1)Copy the pdb files in the same folder where restof the dlls are for Windows Service 2)Go to visual studio and Tools>Attach toProcess 3)Look for something with … Read More
Tags: C#, Debug, Windows Serive
How to run a task asynchronously using Windows Service C#
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 … Read More
Tags: Windows Serive
Windows Service: Command Text property has not been initialized
Windows Service: Command Text property has not been initialized When calling a SQL query in Windows service might throw an error Command Text property has not been initialized Usually this error is that Windows Service can’t find SQL query code. … Read More
Tags: Widnows, Windows Serive