问题
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:
- Any request to the asp.net application hangs for ever
- Restarting the application pool gives the error 0x80070425 (The service cannot accept control message at this time)
- I cannot even log off from the computer, Log Off hangs. The only way is to restart the machine
- Sometimes it gets triggered with some unhandled ado.net exception, at other times there is no pattern.
- 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?
回答1:
Can you try the following
- Open Services.msc
- Look for Credential Manager
- Set Startup Type to "Automatic"
- (Re)Start the Credential Manager service
来源:https://stackoverflow.com/questions/10863059/iis-web-application-hangs-periodically-needs-system-reboot