home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / readme_xml_67________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Extensible Markup Language  |  2002-06-19  |  3.7 KB  |  94 lines

  1. <?xml version='1.0'?> 
  2.     <?xml-stylesheet type="text/xsl" href="..\..\..\..\..\readme.xsl"?> 
  3.     <sample> 
  4.     <title> Remoting Collections Sample</title>
  5.     
  6.     <title-short>Using collections with .NET remoting</title-short>
  7.     
  8.     <overview> 
  9.     This sample shows how to return collections by value to a calling client.
  10.     Depending on the method called, the service returns a <I>Stack</I>, <I>ArrayList</I> and
  11.     <I>Hashtable</I> to the caller.  This sample uses HTTP over port 80 and requires
  12.     the service to be registered with IIS before a client can call this service.
  13.     </overview>
  14.     
  15.     <subdirectory>Technologies\Remoting\VB\Basic\RemotingCollections
  16.     
  17.     <directory name = "bin"> 
  18.     Contains the CollectionLibrary.dll required when the services are accessed using IIS.  The
  19.     service should be registered with IIS before calling this service from the client in
  20.     Client/ConsoleClient.
  21.     </directory>
  22.     
  23.     <directory name = "Service">
  24.     The source code for the CollectionLibrary and associated build.bat are stored here.  The
  25.     build.bat file copies the CollectionLibrary.dll to the bin directory.
  26.     </directory>
  27.  
  28.     <directory name = "Client">
  29.     Contains the ConsoleClient subdirectory.
  30.     </directory>
  31.  
  32.     <directory name = "Client\ConsoleClient">
  33.     Contains client.cs as well as the associated build.bat for building the client
  34.     executable.
  35.     </directory>
  36.     </subdirectory>
  37.     
  38.     <customsection  name = "Registering the service in IIS">
  39.     <li>Compile the service to a DLL and copy this DLL to a bin directory where
  40.     the service will be loaded from.  For this sample we create
  41.     the bin subdirectory under RemotingCollections and copy the CollectionLibrary.dll
  42.     there.</li><p></p>
  43.     
  44.     <li>Start Internet Services Manager and select Default Web Site
  45.     under the server node.  Select Action, New, Virtual Directory on the
  46.     menu and click Next to continue.</li><p></p>
  47.     
  48.     <li>Enter RemotingCollections as the alias and press Next.</li><p></p>
  49.     
  50.     <li>Enter the directory where the service is located.  Enter the full
  51.     path up to but excluding the bin directory where the dll in step 1
  52.     was copied to.  For example:<p></p>
  53.     
  54.       <b>C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Remoting\VB\Basic\RemotingCollections</b></li><p></p>
  55.     
  56.     <li>Press Next.  Accept the defaults presented and press Next again.  Press Finish.  The service
  57.     has now been registered and will appear under the list of Default Web Sites in the Internet Services
  58.     Manager window.</li><p></p>
  59.     
  60.     <li>Check that there is a web.config file in the directory where the service was registered.  This
  61.     file describes our service and will automatically be loaded when a client attempts to access our
  62.     service with a browser or client using the HTTP channel on port 80.</li>
  63.     </customsection>
  64.     
  65.     <customsection  name = "Requirements">
  66.     This sample will only operate correctly on any version of Windows with the Common Language Runtime and Internet Information Server (IIS) installed.  
  67.     </customsection>
  68.  
  69.     <buildsteps> 
  70.     <step> 
  71.     Type <b>BuildAll.bat</b> from the command line.      
  72.     <example> 
  73.     C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Remoting\VB\Basic\RemotingCollections> BuildAll.bat
  74.     </example>
  75.     </step>
  76.     </buildsteps>
  77.     
  78.     <runsteps> 
  79.     <step>
  80.     Ensure that <b>RemotingCollections</b> is registered with IIS (see Registering 
  81.     the service in IIS above) and run the executable <b>client.exe</b> from the 
  82.     <b>ConsoleClient</b> directory.
  83.     </step>
  84.     </runsteps>
  85.     
  86.     <keywords> 
  87.     <word name="Remoting" keyword="R"/>
  88.     <word name="Collections" keyword="C"/>
  89.     <word name="MBR" keyword="M"/>
  90.     </keywords>
  91.     </sample>
  92.  
  93.  
  94.