The information in this article applies to:
SYMPTOMS
When using Personal Web Server (for Windows 95) or Peer Web Services (for
Windows NT 4.0 Workstation) on a computer that does not have an active
network connection, Visual InterDev may be unable to access documents
shared using HTTP or FTP.
CAUSE
As noted in the documentation for both Personal Web Server (Windows 95) and
Peer Web Services for Windows NT 4.0 Workstation, the Web Server needs to
have an active connection to the Internet to enable Domain Name Resolution.
If the computer does not have an active connection to the Internet, it must
be connected to an Internet Service Provider (ISP) by using Dial-Up
Networking.
RESOLUTION
NOTE: The following workarounds will not work in all cases due to the
complexity and possible variations in Network configurations for any given
machine. Therefore, consult the appropriate documentation for your
operating system or your Network Administrator or contact Windows 95
Networking customer support.
Workaround 1Because the Web Server requires an active network connection, one solution is to connect to an Internet Service Provider (ISP) before attempting to view documents shared on the Web Server. This resolves the problem because the ISP provides the Domain Name Resolution service that the Web Server requires.Workaround 2If Microsoft Internet Explorer version 3.01 or later is being used, connect to http://localhost. This initializes the TCP/IP stack and connects the browser to the home page on the local computer. The browser will then be able to access documents shared on the Web Server using the computer name instead of "localhost." If Internet Explorer is closed, the above steps must be repeated to access documents shared on the Web Server.Workaround 3Use the HOSTS file to resolve the local machine name to the default IP Loopback address (127.0.0.1). The HOSTS file is used as a local Domain Name System (DNS) equivalent to resolve host names to IP addresses. The "Hosts.sam" file, located in the Windows directory (or the WinNT\System32\Drivers\Etc directory for Windows NT Workstation and NT Server), shows an example of the entries that need to be made and can be used as a template. To edit the "Hosts.sam" file, open it in Notepad and replace word "Localhost" with the local machine's name. Because entries are case-sensitive, it is a good idea to assign multiple host names with different cases using the same IP address. Assuming the local machine's name is "Nikichan," an example of the edited "Hosts.sam" file is listed below.After editing the HOSTS file, save it as "Hosts.txt" (by default, Notepad appends the .txt extension to all files that it saves, including file names without an extension), and then rename it to "Hosts" without the .txt file extension using the Windows Explorer. (To confirm that it is an extension- less file, go into click Options from the View menu, select the "Show all files" option, and deselect "Hide file extensions for known file types.") Reboot the machine so changes will take effect and load the HOSTS file into memory. Visual InterDev should now be able to access documents on Personal Web Server and documents in shared directories.
STATUSThis behavior is by design. MORE INFORMATION
The information in this article also applies to the following:
If Visual InterDev is still unable to connect to the Web server after following the steps outlined in Workaround 3 above, check the following configuration settings for Windows 95 and change them as necessary. (For Windows NT Workstation, see the Windows NT Workstation documentation on how to configure these settings):
REFERENCES
For more information, please see the following articles in the Microsoft
Knowledge Base:
Q150575 How to Set Up a TCP/IP Peer-to-Peer Network Connection For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site: http://support.microsoft.com/support/vinterdev/ Additional query words:
Keywords : kbtool kbnokeyword kbNTOS400 kbVisID kbVisID100 kbVisID600 kbWebServer kbGrpASP kbIDEProject VIServer |
Last Reviewed: November 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |