Installing the Windows Service
A Windows service can be installed on the host machine using a traditional setup program (such as
an *.msi installer) or via the installutil.exe command-line tool. Using a Visual Studio 2008 com-
mand prompt, change into the \bin\Debug folder of your MathWindowsServiceHost project. Now,
enter the following command:
installutil MathWindowsServiceHost.exe
Assuming the installation succeeded, you can now open the Services applet located under the
Administrative Tools folder of your Control Panel. You should see the friendly name of your Windows
service listed alphabetically. Once you locate it, you can start the service on your local machine (see
Figure 25-17).
Figure 25-17.
Viewing our Windows service, which is hosting our WCF service
Now that the service is alive and kicking, the last step is to build a client application to con-
sume its services.
Do'stlaringiz bilan baham: |