Microsoft KB Archive/279729

= Web Pages Not Serving from IIS =

Article ID: 279729

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 6.0
 * Microsoft Internet Information Server 3.0
 * Microsoft Internet Information Server 4.0
 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q279729



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SYMPTOMS
When trying to browse a Web page that is hosted by Internet Information Server/Services, clients may report they are unable to connect.



CAUSE
Unfortunately, there is no single cause for IIS failing to serve Web pages. Even if network connectivity can be eliminated as the cause, additional information is required to determine the exact reason why clients cannot connect to the server.



MORE INFORMATION
Because IIS is a complex product that relies on various operating system components, it is important to determine if only certain types of content have stopped being served. Following are two samples that you can use to test the two most common types of content:
 * 1) Static HTML (.htm or .html files)
 * 2) Active Server Pages (ASP) pages (.asp files)

To test IIS's ability to serve HTML (static) content.

Create a file called Hello.htm in the content folder for IIS (by default, this is C:\Inetpub\Wwwroot) that contains the sample code listed below.

Then request http://localhost/hello.htm from the Web browser that is installed on the IIS server.

 HTML Test Page

If you see &quot;Hello World&quot; below, then HTML pages are serving properly.

Hello World 

To test IIS's ability to serve ASP (dynamic) content.

Create a file called Hello.asp in the content folder for IIS (by default, C:\Inetpub\Wwwroot), that contains the following sample code,

Then request http://localhost/hello.asp from the Web browser that is installed on the IIS server. <%  strWrld=&quot;Hello World&quot; %>

 ASP Test Page

If you see &quot;Hello World&quot; below, then ASP pages in this Web application are serving properly.

<%=strWrld%> </HTML>

The Hello.htm and Hello.asp samples can also be downloaded.

The following file is available for download from the Microsoft Download Center:

Hello.exe

Release Date: May-17-2001

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. The Hello.exe file contains the following files:

Hello.asp Displays Properly
If the phrase &quot;Hello World&quot; is displayed properly on the ASP test page, but another ASP page does not serve properly, the following reasons may apply: <ul> <li>The failing ASP page is running in a separate process from the Web application that is running the Hello.asp test page. Each process (Inetinfo.exe, Mtx.exe, or Dllhost.exe) that is capable of serving ASP pages (or any other Internet Server API application) has its own thread pool, which is separate from the thread pool in other processes. If one process is experiencing blocking (also known as ASP queuing, which occurs when all available threads are in use but additional requests continue to come in), a separate process may continue serving ASP pages properly because it has its own thread pool from which to execute requests.</li> <li>The failing page is not executing static HTML or ASP content. If the failing page is a Common Gateway Interface (CGI) application, see the following Microsoft Knowledge Base articles for additional information on troubleshooting CGI applications:

160422 How IIS Launches a CGI Application

217202 PRB: CGI Applications and IIS OOP Applications May Intermittently Fail

If the failing page is executed by an ISAPI application developed by a third-party company, contact that third party for technical support.</li></ul>

Hello.asp Does Not Display Properly

 * If the phrase &quot;Hello World&quot; is not displayed on the ASP page, it is possible that the ASP threads are queued, blocked, or deadlocked, which requires additional problem-solving that is beyond the scope of this article.
 * The failing ASP page contains a problem that is preventing IIS from properly serving ASP content (see the thread pool/ASP queuing information earlier in this article). If custom COM objects are in use on any of the pages that are failing, you can try contacting the vendor of those COM objects or the developer of that page for technical support. To determine if COM objects are in use, search for occurrences of &quot;Set&quot; (Microsoft Visual Basic Script) or &quot;var&quot; (Microsoft JScript). If either of those keywords exist, the COM object called is in the parentheses following CreateObject (VBScript or JScript) or ActiveXObject (JScript).

Hello.htm Does Not Display Properly
If Hello.htm does not display properly, one of the following reasons may apply:
 * IIS is not listening on the IP address and port requested by the client.
 * Networking issues are preventing the client from reaching the server (consider testing with a Web browser on the IIS server).

For more information on troubleshooting Web applications, see the following Microsoft Web pages:

Debugging Distributed Web Applications

http://msdn2.microsoft.com/en-us/library/ms951776.aspx

Problem Isolation with Web-Based Applications

ttp://support.microsoft.com/servicedesks/webcasts/WC070899/WC070899.asp

To learn about recommended settings and optimization of IIS, see the following Microsoft Web pages:

The Art and Science of Web Server Tuning with Internet Information Services 5.0

http://www.microsoft.com/technet/prodtechnol/acs/reskit/acrkappc.mspx

Tuning Internet Information Server Performance

http://www.microsoft.com/technet/archive/IIS3/tuning.mspx

Additional query words: hello

Keywords: kbdownload kbprb kbpending KB279729

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.