Microsoft KB Archive/819605

= HOW TO: Host the Visual J# .NET Remoting Service Sample Application on Internet Information Services =

Article ID: 819605

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 6.0
 * Microsoft Visual J# .NET 2003 Standard Edition
 * Microsoft Visual J# .NET 2003 Standard Edition

-





SUMMARY
This step-by-step article discusses how to host the Remoting Service sample application in Internet Information Services (IIS). This sample application is included with the Visual J# .NET 2003 documentation.

We recommend that the remoting service be hosted before the client consumes the service. To do this, compile the service as a dynamic link library (DLL), and then register the service in IIS.



Host the Remoting Service Application
 Create a new folder that is named RemotingService in the root directory (C:\). Open the Visual Studio .NET 2003 documentation. Paste the following in the URL box:

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dv_vjsample/html/vjsamremotingsample.htm

 The Remoting Service sample application appears. Click Copy All Files. In the Browse For Folder dialog box, type C:\RemotingService in the Folder text box. Open a Visual Studio .NET 2003 command prompt, and then run the following command: cd c:\remotingservice\samples\visual j# .net 2003\technologies\remotingsample </li> To build the Remoting Service sample application, run the following command: buildall.bat </li> Start IIS Manager: <ol style="list-style-type: lower-alpha;"> Click Start, and then click Run.</li> Type inetmgr in the Open box, and then click OK.</li></ol> </li> Expand the   in the left pane, and then expand Web Sites.</li> Right-click Default Web Site, point to New, and then click Virtual Directory.</li> Click Next on the Virtual Directory Creation wizard.</li> Type HelloService as the Alias, and then click Next.</li> Click Browse, and then locate Remote Service Application.</li> Click Next two times (that is, on successive dialog boxes), and then click Finish.</li> In IIS Manager, right-click HelloService, and then click Properties.</li> On the Directory Security tab, click Edit under Authentication and Access Control.</li> Click to select the Enable anonymous access check box, and then click OK.

You may notice that the Web.config file exists in the virtual directory.</li></ol>

<div class="references_section">