Skip to main content

Problem:

The tutorial gives the following steps to add a web reference:

1. Right-click OurConsApp in Solution Explorer, and click Add Web Reference.

The Add Web Reference wizard is displayed. If we knew the URL, we could enter it directly in the URL entry field.

2. Click the link for Web Services On The Local Machine.

A list of all web services on your machine appears very quickly, showing the Services name and URL. We only have one, Service1.

Resolution:

If the user does not see anything after clicking the link for Web Services On The Local Machine, it is possible the user does not have a web server running on his/her machine. (This would be the case for Win9x/ME and WinXP Home users)

If user is running Windows 2000 or XP Profesionnal, they can install the IIS as follows:

1. Go to Add/Remove Program from Control Panel

2. Click on Add/Remove Windows Components from the left-hand right of the window

3. Check the option for Internet Information Services (IIS)

4. Follow the instructions ...

If the user already has the IIS installed, make sure it is actually running. A way to verify this is to open the web browser and go to

http://localhost

If that results to a "page cannot be found" message, it simply means IIS is not running. To start the Web services, you need to go to Administrative Tools from Control Panel, open Services, right-click on IIS Admin from the list, and select Start. You might need to start the World Wide Web Publishing service as well.

Old KB# 6927