IIS 7.0 gives 503 error and stops the application pool

Ram picture Ram · Mar 6, 2013 · Viewed 31.6k times · Source

When I start the application pool, and request a page in an application in that pool, I get a "HTTP Error 503. The service is unavailable."

If I look at the application pools in IIS, I can see that it has now stopped. Going to the event viewer I find this error message:

'The identity of application pool Badge.Web is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.'

I'm very sure the credentials I'm using is correct. Something else is causing the app pool to stop.

Answer

GreenhouseVeg picture GreenhouseVeg · Oct 14, 2013

I had similar problem today when an application pool using Windows user identity X stopped working after password change for that user.

Apparently, some information linked to old credentials was stored in the system, and I solved the problem by:

  • switching app pool identity to NetworkService
  • switching it back to X using the new password

So far it's working fine.