Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have observed a few times while deploying software into IIS that every now and again the related Application Pools fail to restart and in the Event Log we see an error like the following:

The identity of application pool, 'AppPoolName' is invalid. If it remains invalid when the first request for the application pool is processed, the application pool will be disabled.

This does not happen frequently but when it does the only solution is to re-apply the Identity password in the IIS Manager Window. As soon as I re-apply and then restart the application pool the web sites come back up.

Facts:

  • The account is a service account whose password never expires.
  • The account is local to the IIS host.
  • The account password is never changed.
  • This is IIS 6 running on Windows Server 2003
  • Deployment of the software is via MSI and involves several IIS Resets.
  • The software is created in house and does not do anything fancy to IIS.

Any ideas how the identity information might become corrupt?

Edit: Clarification

To be clear - this user account and password combination work absolutely fine and usually works fine as the Identity of the Application Pool. It is only when we deploy updates of our software into an existing IIS application that it stops working.

  • Our password has not changed
  • Our deployment does not change the password or reconfigure the application pools.
  • This does not happen every time, 1/20 times perhaps.
  • If we re-enter the password into IIS and restart the App Pools everything works.
share|improve this question
    
Is the service account created as part of the install, or is it already in existence? –  alastairs Sep 14 '11 at 9:30
    
It already exists and works fine. Deploying an update to the software appears to corrupt IIS configuration. Re-entering the password for the App Pool identity within IIS solves this problem... until next time. –  Gavin Osborn Sep 14 '11 at 9:45

2 Answers 2

Always run IISRESET /NOFORCE, if you must run IISReset at all.

If you're not running /NOFORCE, you're running a much greater chance of metabase corruption, which I'd guess could manifest itself in the above way.

share|improve this answer
    
A metabase corruption is my current line of thought too. Thanks - I will investigate the /noforce flag. –  Gavin Osborn Sep 14 '11 at 12:37

This answer may help out as it appears to resolve the issue you are having - also ensure the service account is a memeber of the IIS_WPG group.

http://stackoverflow.com/questions/863537/asp-net-error-the-identity-of-application-pool-is-invalid

share|improve this answer
    
Hey Andrew, The user is already a member of the IIS_WPG group and is a local service account with the rights described in that answer. To be clear... this user and application pool usually work fine but on occasion a deployment/update appears to corrupt the IIS configuration. Re-entering the password in IIS then fixes the problem. –  Gavin Osborn Sep 14 '11 at 9:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.