Microsoft KB Archive/899301

= One or more IIS services may unexpectedly close, and you may receive an &quot;Event ID 7031&quot; error message in the System log when you start a Web site that is hosted on IIS 5.0 =

Article ID: 899301

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Services 5.0

-





SYMPTOMS
When you start a Web site that is hosted on Microsoft Internet Information Services (IIS) 5.0, one or more IIS services may unexpectedly close. In the System log, you may also receive an error message that is similar to the following:

Event Type: Error

Event Source: Service Control Manager

Event Category: None

Event ID: 7031

Description: The  service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 0 milliseconds: No action.

Note In the error message,  represents one of the IIS services.

Additionally, you may receive an error message that is similar to the following when you try to open a Web site that is hosted on IIS 5.0:

Server Application Unavailable



CAUSE
This issue occurs when the caching of ISAPI applications is disabled on the Web site. This setting is not the default setting for IIS. You can only disable caching of ISAPI extensions when you test during ISAPI extension development. You must enable caching of ISAPI extensions on a production server.



RESOLUTION
To resolve this issue, enable caching of ISAPI applications on the Web site. To do this, follow these steps:
 * 1) Click Start, click Run, type %systemroot%\system32\inetsrv\iis.msc, and then click OK.
 * 2) Expand the computer name that you want to configure.
 * 3) Right-click the Web site that you want to configure, and then click Properties.
 * 4) On the Home Directory tab, click Configuration.
 * 5) Click to select the Cache ISAPI applications check box.
 * 6) Click OK two times.



MORE INFORMATION
The information in the dump file may be similar to the following:

Access violation - code c0000005 (!!! second chance !!!)

eax=00000000 ebx=00000000 ecx=022bd980 edx=022bd980 esi=00000001 edi=00000068

eip=7a136053 esp=01aff310 ebp=00000000 iopl=0 nv up ei pl nz na pe nc

cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000202

aspnet_isapi!ProcessModelInit+38:

7a136053 3b7004 cmp esi,[eax+0x4] ds:0023:00000004=????????

0:019> kbn

The error message in the Dr. Watson log may be similar to the following:

Application exception occurred:

App: inetinfo.exe (pid=2624)

When: 12/13/2002 @ 10:25:30.007

Exception number: c0000005 (access violation)


 * > System Information <*

Computer Name: WWW1

User Name: SYSTEM

Number of Processors: 2

Processor Type: x86 Family 6 Model 8 Stepping 10

Windows 2000 Version: 5.0

Current Build: 2195

Service Pack: 3

Current Type: Multiprocessor Free

Registered Organization: Commerce Commission

Registered Owner: Illinois

function: SetGCLastCalledTime

7a13603b 7e1c jle SetGCLastCalledTime+0x7cdf (7a13b759)

7a13603d 57 push edi

7a13603e 33ff xor edi,edi

7a136040 8b08 mov ecx,[eax] ds:00000000=????????

7a136042 53 push ebx

7a136043 03cf add ecx,edi

7a136045 e8e770ffff call AttachDebugger+0x10cb (7a12d131)

7a13604a a108a6157a mov eax,[7a15a608] ds:7a15a608=00000000

7a13604f 46 inc esi

7a136050 83c768 add edi,0x68

FAULT ->7a136053 3b7004 cmp esi,[eax+0x4] ds:0081d5d2=????????

Keywords: kbtshoot kbiisam kbprb KB899301

-

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

© Microsoft Corporation. All rights reserved.