Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS: Web Application hangs periodically needs system reboot

Tags:

iis-7.5

freeze

Once every 18-24 hours my IIS stops responding on a particular website. We have upgraded our web application a week ago and this seems to have started it. When it happens:

  1. Any request to the asp.net application hangs for ever
  2. Restarting the application pool gives the error 0x80070425 (The service cannot accept control message at this time)
  3. I cannot even log off from the computer, Log Off hangs. The only way is to restart the machine
  4. Sometimes it gets triggered with some unhandled ado.net exception, at other times there is no pattern.
  5. Inspection of the IIS log files does not product any recognizable pattern

Machine is windows server 2008 R2 Standard Edition. My application runs with ASP.Net 4.0 Classic Mode

Some of the event log entries found are the following:


There was an error during processing of the managed application service auto-start for application pool: 'MyApps'. The loading of application service provider objects is not supported if the pipeline mode is set to 'Classic' mode. As a result, no managed application service auto-start has been completed. To resolve this issue, please change the pipeline mode for this application pool to 'Integrated' mode. The data field contains the error code.


A worker process '1164' serving application pool 'MyApps' failed to stop a listener channel for protocol 'http' in the allotted time. The data field contains the error number.


Application pool OfficeClip has been disabled. The request from protocol http to create the application pool failed. Restart the application pool so that Windows Process Activation Service (WAS) can determine the correct state of the protocol. The data field contains the error number.


Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.

DETAIL - 1 user registry handles leaked from \Registry\User\S-1-5-21-3692684334-282388892-2276244761-500: Process 900 (\Device\HarddiskVolume2\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-3692684334-282388892-2276244761-500\Printers\DevModePerUser


The World Wide Web Publishing Service failed to set the application pool for the application '/' in site '10'. The data field contains the error number.


Any ideas on how to figure out what is wrong short of reinstalling the OS?

like image 532
Samuel Avatar asked Jun 02 '12 14:06

Samuel


People also ask

What causes IIS to stop responding?

IIS hangs happen when all available IIS threads are blocked, causing IIS to stop dequeueing additional requests. This is rare these days, because IIS request threads almost never block. Instead, IIS hands off request processing to an ASP .

How do I fix IIS problems?

In IIS Manager, expand the local computer, right-click Web Sites, and then click Properties. Click the Service tab, select the Run WWW service in IIS 5.0 isolation mode check box, and then click OK. To start the WWW service, click Yes.

How application pool works in IIS?

Application pools can contain one or more worker processes. Each worker process represents work being done for a Web site, Web application, or Web service. You can create a Web garden by enabling multiple worker processes to run in a single application pool. In IIS 7 and later, each application pool uses one of two .


1 Answers

Can you try the following

  • Open Services.msc
  • Look for Credential Manager
  • Set Startup Type to "Automatic"
  • (Re)Start the Credential Manager service
like image 146
Sven Avatar answered Nov 02 '22 00:11

Sven