Microsoft KB Archive/819605

From BetaArchive Wiki
Knowledge Base


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.

MORE INFORMATION

Host the Remoting Service Application

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

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

  4. The Remoting Service sample application appears.
  5. Click Copy All Files.
  6. In the Browse For Folder dialog box, type C:\RemotingService in the Folder text box.
  7. Open a Visual Studio .NET 2003 command prompt, and then run the following command: cd c:\remotingservice\samples\visual j# .net 2003\technologies\remotingsample
  8. To build the Remoting Service sample application, run the following command: buildall.bat
  9. Start IIS Manager:
    1. Click Start, and then click Run.
    2. Type inetmgr in the Open box, and then click OK.
  10. Expand the local computer in the left pane, and then expand Web Sites.
  11. Right-click Default Web Site, point to New, and then click Virtual Directory.
  12. Click Next on the Virtual Directory Creation wizard.
  13. Type HelloService as the Alias, and then click Next.
  14. Click Browse, and then locate Remote Service Application.
  15. Click Next two times (that is, on successive dialog boxes), and then click Finish.
  16. In IIS Manager, right-click HelloService, and then click Properties.
  17. On the Directory Security tab, click Edit under Authentication and Access Control.
  18. 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.


REFERENCES

For more information about Visual J# samples, visit the following MSDN Web site:

Keywords: kbhowto kbdirectory kbjava kbdocs kbsample KB819605