Share via


Event ID 2221 — IIS W3SVC Activity

Applies To: Windows Server 2008 R2

In order to perform its activities successfully, the Internet Information Services (IIS) World Wide Web Publishing Service (W3SVC) must be free of any I/O errors involving file access, memory availability, and network connections. In addition, any scripts that are used must be accessible and runnning, and any include files must be configured correctly.

Event Details

Product: Internet Information Services
ID: 2221
Source: Microsoft-Windows-IIS-WMSVC
Version: 7.5
Symbolic Name: W3_MSG_SSI_TOO_MANY_NESTED_INCLUDES
Message: A server side include file has included itself or the maximum depth of server side includes has been exceeded.

Resolve

Remove nested includes

Possible resolutions of nested includes include the following:

  • Check if a server-side include file has included itself.
  • Check if maximum depth of server-side includes has been exceeded.

Check if a server-side include file has included itself

To check if a server-side include file has included itself:

  1. Review server-side include files to ensure that no server-side include file includes itself. For example, the following line is in a server-side include file that is named myInclude.inc:

    <!-- #include file = "myInclude.inc" -->

  2. Remove or replace any #include directive that includes itself.

Check if maximum depth of server-side includes has been exceeded

To check if maximum depth of server-side includes has been exceeded:

  1. Review server-side include files to ensure that no server-side include file exceeds the maximum depth of server-side includes.
  2. Remove any #include directives that exceed the maximum depth.

Verify

To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

To verify that the World Wide Web Publishing service is running:

  1. Open an elevated Command Prompt window. Click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
  2. Type sc query w3svc, and press ENTER. The World Wide Web Publishing service is running if the state reported for the service is 4 RUNNING.

IIS W3SVC Activity

Internet Information Services (IIS) 7.5