CHAPTER 18 602 THE .NET REMOTING LAYER (Web site counters)

CHAPTER 18 602 THE .NET REMOTING LAYER 1. On your hard drive, create a new folder to hold your CarGeneralAsm.dll. Within this folder, create a subdirectory named Bin. Now, copy the CarGeneralAsm.dll to this subdirectory (e.g., C:IISCarServiceBin). 2. Open the Internet Information Services applet on the host machine (located under the Administrative Tools folder in your system s Control Panel). 3. Right-click the Default Web Site node and select New .Virtual Directory. 4. Create a virtual directory that maps to the root folder you just created (C:IISCarService). The remaining default settings presented by the New Virtual Directory Wizard are fine. 5. Finally, create a new configuration file named web.config to control how this virtual directory should register the remote type (see the following code). Make sure this file is saved under the root folder (in this example, C:IISCarService). Now that your CarGeneralAsm.dll has been configured to be reachable via HTTP requests under IIS, you can update your client-side *.config file as follows (using the name of your IIS host, of course): At this point, you are able to run your client application as before. Asynchronous Remoting To wrap things up, let s examine how to invoke members of a remote type asynchronously. In Chapter 14, you were first introduced to the topic of asynchronous method invocations using delegate types. As you would expect, if a client assembly wishes to call a remote object asynchronously,
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.

Leave a Reply