Development tools: VS2012
Language: C #
Today's work is to run the WCF service as a Windows service, because the Windows service has not been done before, all on the internet to look at some articles, found that the creation of Windows Services is a very simple thing, quickly created a Windows service program, Then there is the installation of registration, the online method is given about two ways:
1. InstallUtil.exexxx.exe
2.copy C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe installutil.exe/y
Call InstallUtil.exexxx.exe
After testing to fail, very tangled, so the use of various elimination methods to find the root cause, the correct installation method is
CD C:\Windows\Microsoft.NET\Framework\v4.0.30319
Call InstallUtil.exexxx.exe
Hope that the fate of the people do not detours, and today really let me very egg ache!
Questions about Windows Service Registration