Web proxy server - CHAPTER 18 THE .NET REMOTING LAYER 601
CHAPTER 18 THE .NET REMOTING LAYER 601 Figure 18-10. The Windows Services applet That s it! Now compile your project. Installing the CarWinService Installing CarService.exe on a given machine (local or remote) requires two steps: 1. Move the compiled service assembly (and any necessary external assemblies; CarGeneralAsm. dll in this example) to the remote machine. 2. Run the installutil.exe command-line tool, specifying your service as an argument. Assuming step 1 is complete, open a Visual Studio 2005 command window, navigate to the location of the CarWinService.exe assembly, and issue the following command (note that this same tool can be used to uninstall a service as well): installutil carwinservice.exe Once this Windows service has been properly installed, you are now able to start and configure it using the Services applet, which is located under the Administrative Tools folder of your system s Control Panel. Once you have located your CarService (see Figure 18-10), click the Start link to load and run the binary. Source Code The CarWinService project is located under the Chapter 18 subdirectory. Hosting Remote Objects Using IIS Hosting a remote assembly under IIS is even simpler than building aWindows service, as IIS is preprogrammed to allow incoming HTTP requests via port 80. Now, given the fact that IIS is a web server, it should stand to reason that IIS is only able to host remote objects using the HttpChannel type (unlike aWindows service, which can also leverage the TcpChannel type). Assuming this is not perceived as a limitation, follow these steps to leverage the remoting support of IIS:
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.