PRB: Visual InterDev Cannot Connect to PWS or Share
This article was previously published under Q167661 On This PageSYMPTOMS
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.
NOTE: When referring to both Personal Web Server and Peer Web Services throughout this article, the term "Web Server" will be used; if a distinction is needed, then their respective names will be used. Typical scenarios when using Visual InterDev are as follows:
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.
When Visual InterDev tries to connect to the Web Server using the local computer name, the TCP/IP stack is initialized and attempts to find the computer name. However, it is unable to find the computer name because there is no DNS or WINS service to resolve the Host name to an IP address. Host names are used in virtually all TCP/IP environments and always correspond to an IP address that is stored in a HOSTS file or on a DNS or a WINS server. RESOLUTIONNOTE: 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.
Possible workarounds are listed below. 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. (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. STATUS
This 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:
105997 (http://support.microsoft.com/kb/105997/EN-US/) Differences Between the HOSTS and LMHOSTS Files in Windows NT
150575 (http://support.microsoft.com/kb/150575/EN-US/) How to Set Up a TCP/IP Peer-to-Peer Network Connection 158366 (http://support.microsoft.com/kb/158366/EN-US/) Web Services May Be Stopped When Web Server is Running 158260 (http://support.microsoft.com/kb/158260/EN-US/) Cannot Access Personal Web Server Documents 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/search/default.aspx?qu=vinterdev (http://support.microsoft.com/search/default.aspx?qu=vinterdev) APPLIES TO
| Article Translations
|

Back to the top
