Contains the CAOLibrary.dll required when the service is accessed using IIS. The service should be registered with IIS before calling this service from the client in Client/ConsoleClient.</directory>
<directory name = "Service">
The source file CAOLibrary.cs and associated makefile are stored here. The makefile
creates CAOLibrary.dll and copies this file to the bin directory.
</directory>
<directory name = "Client">
Contains a makefile to build the client in the ConsoleClient directory.
</directory>
<directory name = "Client\ConsoleClient">
Contains the source and associated makefile to build client.exe. The client
uses client.exe.config to configure itself.
</directory>
</subdirectory>
<customsection name = "Registering the service in IIS">
<li>Compile the service to a DLL and copy this DLL to a bin directory
where the service will be loaded from. For this samples we create
the bin subdirectory under RemotingObjects and copy the CAOLibrary.dll there. Building the sample by running nmake will accomplish this. </li><p></p>
<li>Start Internet Services Manager and select Default Web Site
under the server node. Select Action, New, Virtual Directory on the
menu and click Next to continue.</li><p></p>
<li>Enter RemotingObjects as the alias and press Next.</li><p></p>
<li>Enter the directory where the service is located. Enter the full path
up to but excluding the bin directory where the DLL in step 1 was copied to.
<li>Press Next. Accept the defaults presented and press Next again. Press Finish. The service
has now been registered and will appear under the list of Default Web Sites in the Internet Services
Manager window.</li><p></p>
<li>Check that there is a web.config file in the directory where the service was registered. This file describes our service and will automatically be loaded when a client attempts to access our service with a browser or client using the HTTP channel on port 80.</li>
</customsection>
<customsection name = "Requirements">
This sample will only operate correctly on any version of Windows with the Common Language Runtime and Internet Information Server (IIS) installed.
</customsection>
<buildsteps>
<step>
Type <b>nmake -a all</b> from the command line.
<example>
C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Remoting\Basic\RemotingObjects> nmake -a all
</example>
</step>
</buildsteps>
<runsteps>
<step>
Ensure that RemotingObjects is registered as a service with IIS and run client.exe