Microsoft KB Archive/921065

= Internet Information Services stops responding on a Microsoft Dynamics CRM 3.0 server =

Article ID: 921065

Article Last Modified on 10/2/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 3.0
 * Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista



SYMPTOMS
On a Microsoft Dynamics CRM 3.0 server or on a Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers server, Microsoft Internet Information Services (IIS) is unexpectedly reset. Next, IIS stops responding. When IIS stops responding, you receive an error message that resembles the following error messages.

Error message 1

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

Error message 2

Application popup: w3wp.exe - Application Error : The instruction at &quot;0x6a2a2fec&quot; referenced memory at &quot;0x0000000c&quot;. The memory could not be &quot;read&quot;.

Error message 3

When you open Workflow Manager you get the error: &quot;Workflow manager cannot start. This could be because the workflow service has not been started or is not configured correctly.&quot;

Error message 4

If you enable CRM Platform Tracing you get the following error in the Inetinfo-yyyymmddhh.log: Process:inetinfo |Category: Unmanaged.Platform |Level: Error hr = 0x80070005 | CProcessT::GetWorkflowConfig File: c:\bt\224\src\platform\include\om\crm\workflow.inl Line: 2122 Process:inetinfo |Category: Unmanaged.Platform |Level: Error Cannot connect to workflow service. c:\bt\224\src\platform\include\om\crm\workflow.inl 2123 | InternalCrmSetErrorInfo File: c:\bt\224\src\platform\include\util\icrmerror.h Line: 362 Process:inetinfo |Thread:1164 |Category: Unmanaged.Platform |Level: Error hr = 0x80042647 | CCrmProcess::GetWorkflowConfigInternal File: c:\bt\224\src\platform\objectmodel\workflow\crmprocess.cpp Line: 4129

Additionally, the following event messages are logged in the system event log.

Event message 1

A process serving application pool 'CRMAppPool' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '7420'. The data field contains the error number.

Event message 2

A worker process with process id of '5864' serving application pool 'CRMAppPool' has requested a recycle because the worker process reached its allowed processing time limit.

Event message 3

A process serving application pool 'CRMAppPool' terminated unexpectedly. The process id was '1240'. The process exit code was '0x80'.

Event message 4

Application popup: Service Control Manager: At least one service or driver failed during system startup. Use Event Viewer to examine the event log for details.

Event message 5

EventID = 26 Source = Application Popup Description = &quot;Application popup: Service Control Manager: At least one service or driver failed during system startup. Use Event Viewer to examine the event log for details. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.&quot;

After IIS stops responding, you have to restart one or both of the following services if these services cannot restart automatically:
 * IIS Admin Service
 * World Wide Web Service



CAUSE
The problem occurs because two threads are active but not synchronized. One thread is for initialization. This thread starts and stops the listener. The other thread implements a loop that queries the database. When these two threads are active but not synchronized, Microsoft Dynamics CRM may return an address in a module that has been unloaded.



RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

This problem is fixed in Update Rollup 2 for Microsoft Dynamics CRM 3.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

927751 Update Rollup 2 for Microsoft Dynamics CRM 3.0 is available

This problem is fixed in Update Rollup 1 for Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

935731 Update Rollup 1 for Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers is available

By default, this fix is disabled. To enable this fix, create a new registry key. To do this, follow these steps:  Exit Microsoft Dynamics CRM 3.0. On the server that is running Microsoft Dynamics CRM, click Start, click Run, type regedit, and then click OK. Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM

 On the Edit menu, point to New, and then click DWORD Value. Type SuspendThreadOnStopListener, and then press ENTER. Right-click SuspendThreadOnStopListener, and then click Modify.</li> In the Value box, type 1, and then click OK.</li> On the File menu, click Exit to exit Registry Editor.</li> Click Start, click Run, and then type iisreset .</li></ol>

Notes
 * This procedure will momentarily stop all running Web sites and then start the Web sites.
 * After you enable this hotfix, notification threads are suspended instead of shutdown events being set.

This problem is not fixed in Update Rollup 2 or in Update Rollup 1 for the Japanese version or the Chinese version of Microsoft Dynamics CRM 3.0.

Hotfix information
If you are using the Japanese version or the Chinese version of Microsoft Dynamics CRM, a supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next update rollup that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.Microsoft Dynamics CRM client for Outlook

Microsoft Dynamics CRM client for Outlook Compatibility Update

Microsoft Dynamics CRM 3.0 server

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

This problem was corrected in Microsoft Dynamics CRM 3.0 Update Rollup 2 and in Update Rollup 1 for Microsoft Dynamics CRM 3.0 Professional Edition for Service Providers.

<div class="moreinformation_section">

MORE INFORMATION
You can use the Log Parser tool to determine the errors that occurred on the Microsoft Dynamics CRM 3.0 server. To obtain the Log Parser tool, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&displaylang=en

After you install the Log Parser tool, use this tool to query errors. To do this, follow these steps: <ol> Click Start, point to All Programs, point to Log Parser 2.2, and then click Log Parser 2.2.</li> At the Log Parser 2.2 command prompt, type the following command:

Logparser &quot;select TimeGenerated,SourceName,EventCategoryName, Message into System.csv from System where EventID IN (7034;1074;26) order by TimeGenerated desc&quot;

</li> Press ENTER.</li> Open the System.csv file by using one of the following programs: <ul> Microsoft Office Excel</li> Microsoft Office Word</li> Notepad</li></ul>

Note By default, the System.csv file is in the following directory:

C:\Program Files\Log Parser 2.2

</li></ol>

The records in the System.csv file show the errors that occurred on the Microsoft Dynamics CRM 3.0 server.

<div class="references_section">