Simple test project ASP.Net (C#)
Solution contatins 3 projects
- ASP.Net MVC
- Service library
- Window service project
-
Compile whole solution
-
Install service. Start console with admin options and run command below:
installutil "G:\YOURS PATH\ContactWindowsService.exe"
-
Starting service. Open Windows services dialog and start this service (name ContactWindowsService)
-
Starting MVC project with ISS or ISS Express
-
Diactivating service. Open Windows services dialog and deactive service (name ContactWindowsService)
-
Remove service. Start console with admin options and run command below:
sc delete ContactWindowsService