Home
%3CLINGO-SUB%20id%3D%22lingo-sub-305274%22%20slang%3D%22en-US%22%3EEvent%20ID%205059%20(Application%20pool%20has%20been%20disabled)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-305274%22%20slang%3D%22en-US%22%3E%3CP%3EAn%20IIS%20website%20may%20display%20%E2%80%9CHTTP%20503%20%E2%80%93%20Service%20Unavailable%E2%80%9D%20error%20when%20the%20application%20pools%20don%E2%80%99t%20have%20correct%20configuration%20or%20permissions%20which%20causes%20them%20to%20unexpectedly%20stop.%20Event%20ID%205059%20clearly%20shows%20the%20reason%20behind%20the%20503%20error%3A%20%E2%80%9CApplication%20pool%20has%20been%20disabled%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20also%20see%205021%20(The%20identity%20of%20application%20pool%20%251%20is%20invalid)%20and%205057%20(Application%20pool%20%251%20has%20been%20disabled)%20in%20Event%20Viewer.%20Here%20are%20the%20detailed%20error%20messages%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EEvent%20ID%205021%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20identity%20of%20application%20pool%20%251%20is%20invalid.%20The%20user%20name%20or%20password%20that%20is%20specified%20for%20the%20identity%20may%20be%20incorrect%2C%20or%20the%20user%20may%20not%20have%20batch%20logon%20rights.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fprevious-versions%252Fwindows%252Fit-pro%252Fwindows-server-2008-R2-and-2008%252Fcc735179(v%25253dws.10)%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257C8ca55ff4206a4f3b82cc08d66535c1e6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C636807678897108871%26amp%3Bsdata%3DFx4iqG0vENxU8y%252FUUwP0zf471zY0%252Bo6TysoTzBGtDEU%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESource%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EEvent%20ID%205057%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EApplication%20pool%20%251%20has%20been%20disabled.%20Windows%20Process%20Activation%20Service%20(WAS)%20did%20not%20create%20a%20worker%20process%20to%20serve%20the%20application%20pool%20because%20the%20application%20pool%20identity%20is%20invalid.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fprevious-versions%252Fwindows%252Fit-pro%252Fwindows-server-2008-R2-and-2008%252Fcc735291(v%25253dws.10)%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257C8ca55ff4206a4f3b82cc08d66535c1e6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C636807678897118880%26amp%3Bsdata%3DBZwiMcd9KzrrZP6CRS%252FgztbZhqYSOCakfS1btuTbRHg%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESource%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EEvent%20ID%205059%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EApplication%20pool%20%251%20has%20been%20disabled.%20Windows%20Process%20Activation%20Service%20(WAS)%20encountered%20a%20failure%20when%20it%20started%20a%20worker%20process%20to%20serve%20the%20application%20pool.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fprevious-versions%252Fwindows%252Fit-pro%252Fwindows-server-2008-R2-and-2008%252Fcc735276(v%25253dws.10)%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257C8ca55ff4206a4f3b82cc08d66535c1e6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C636807678897118880%26amp%3Bsdata%3DpbFGfSNHaflZS%252FjUhVllL6sA4j1x79Sfs23Wxn1O1qQ%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESource%3C%2FA%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1673361399%22%20id%3D%22toc-hId-1763983634%22%20id%3D%22toc-hId-1763983634%22%20id%3D%22toc-hId-1763983634%22%20id%3D%22toc-hId-1763983634%22%20id%3D%22toc-hId-1763983634%22%20id%3D%22toc-hId-1763983634%22%20id%3D%22toc-hId-1763983634%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--878795562%22%20id%3D%22toc-hId--788173327%22%20id%3D%22toc-hId--788173327%22%20id%3D%22toc-hId--788173327%22%20id%3D%22toc-hId--788173327%22%20id%3D%22toc-hId--788173327%22%20id%3D%22toc-hId--788173327%22%20id%3D%22toc-hId--788173327%22%3EChecklist%20to%20solve%20%E2%80%9CApplication%20pool%20has%20been%20disabled%E2%80%9D%20error%3C%2FH2%3E%0A%3CP%3EHTTP%20503%20status%20code%20and%205059%20event%20ID%20may%20indicate%20issues%20related%20to%20account%20permissions%20or%20IIS%20configuration.%20Here%20is%20a%20list%20of%20things%20to%20try.%20You%20may%20need%20to%20restart%20IIS%20or%20machine%20after%20each%20change.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EThe%20account%20used%20as%20application%20pool%20identity%20shouldn%E2%80%99t%20be%20locked%3C%2FLI%3E%0A%3CLI%3EReset%20the%20password%20of%20the%20application%20pool%20identity%20account%20in%20case%20it%20is%20expired%3C%2FLI%3E%0A%3CLI%3ESwitch%20from%20built-in%20account%20to%20domain%20account%20for%20application%20pool%20identity%3C%2FLI%3E%0A%3CLI%3EUse%20another%20domain%20account%20as%20application%20pool%20identity%3C%2FLI%3E%0A%3CLI%3EGive%20%E2%80%9C%3CSTRONG%3EFull%20Control%3C%2FSTRONG%3E%E2%80%9D%20to%20application%20pool%20identity%20account%20on%20shared%20data%20and%20configuration%20folders%3C%2FLI%3E%0A%3CLI%3EGive%20%E2%80%9C%3CSTRONG%3ELog%20on%20as%20Batch%20Job%3C%2FSTRONG%3E%E2%80%9D%20permission%20to%20the%26nbsp%3Bapplication%20pool%20identity%20account%3C%2FLI%3E%0A%3CLI%3EAdd%20the%20application%20pool%20identity%20account%20to%3CCODE%3EIIS_USRS%3C%2FCODE%3E%20group%3C%2FLI%3E%0A%3CLI%3ECheck%20account%20information%20in%20applicationHost.config%20for%20possible%20typos%3C%2FLI%3E%0A%3CLI%3ERecreate%20application%20pools%2C%20websites%2C%20and%20shared%20configuration%20(if%20used)%3C%2FLI%3E%0A%3CLI%3EMake%20sure%20to%20use%20the%20same%20encryption%20provider%20(%3CCODE%3EIISWASOnlyCngProvider%3C%2FCODE%3E%20or%20%3CCODE%3EIISCngProvider%3C%2FCODE%3E)%20in%20applicationHost.config%3C%2FLI%3E%0A%3CLI%3EChange%20application%20pool%20process%20model%20from%20%3CCODE%3ELogonBatch%3C%2FCODE%3E%20to%20%3CCODE%3ELogonService%3C%2FCODE%3E%3C%2FLI%3E%0A%3CLI%3EIf%20it%20is%20a%20shared%20configuration%20setup%20in%20IIS%2C%20use%20the%20same%26nbsp%3B%3CCODE%3EIISWASKey%3C%2FCODE%3E%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-305274%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EAn%20IIS%20website%20may%20display%20%E2%80%9CHTTP%20503%20%E2%80%93%20Service%20Unavailable%E2%80%9D%20error%20when%20the%20application%20pools%20don%E2%80%99t%20have%20correct%20configuration%20or%20permissions%20which%20causes%20them%20to%20unexpectedly%20stop.%20Event%20ID%205059%20clearly%20shows%20the%20reason%20behind%20the%20503%20error%3A%20%E2%80%9CApplication%20pool%20has%20been%20disabled%E2%80%9D.%20This%20post%20has%20recommendations%20to%20solve%20this%20issue.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-679922%22%20slang%3D%22en-US%22%3ERe%3A%20Event%20ID%205059%20(Application%20pool%20has%20been%20disabled)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-679922%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%2C%20for%20me%20the%20logon%20as%20batch%20was%20the%20final%20part.%26nbsp%3B%20I%20also%20needed%20to%20reset%20all%20of%20the%20password%20used%20by%20the%20different%20sharepoint%20services%20as%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-680941%22%20slang%3D%22en-US%22%3ERe%3A%20Event%20ID%205059%20(Application%20pool%20has%20been%20disabled)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-680941%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEvent%20ID%205059%3C%2FP%3E%3CP%3EApplication%20pool%20%251%20has%20been%20disabled.%20Windows%20Process%20Activation%20Service%20(WAS)%20encountered%20a%20failure%20when%20it%20started%20a%20worker%20process%20to%20serve%20the%20application%20pool.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20try%20the%20below%20steps%20to%20resolve%20the%20%22Application%20pool%20has%20been%20disabled%22%20error%3C%2FP%3E%3COL%3E%3CLI%3EReset%20the%20password%20of%20the%20application%20pool%20identity%20account%20in%20case%20it%20is%20expired%3C%2FLI%3E%3CLI%3ETry%20using%20another%20domain%20account%20as%20application%20pool%20identity%3C%2FLI%3E%3CLI%3EGive%20%E2%80%9CLog%20on%20as%20Batch%20Job%E2%80%9D%20permission%20to%20the%26nbsp%3Bapplication%20pool%20identity%20account%3C%2FLI%3E%3CLI%3EAdd%20the%20application%20pool%20identity%20account%20to%26nbsp%3BIIS_USRS%26nbsp%3Bgroup%3C%2FLI%3E%3CLI%3EGive%20%E2%80%9CFull%20Control%E2%80%9D%20to%20application%20pool%20identity%20account%20on%20shared%20data%20and%20configuration%20folders%3C%2FLI%3E%3CLI%3ECheck%20account%20information%20in%20applicationHost.config%20for%20possible%20typos%3C%2FLI%3E%3CLI%3ERecreate%20application%20pools%2C%20websites%2C%20and%20shared%20configuration%20(if%20used)%3C%2FLI%3E%3CLI%3ESwitch%20from%20built-in%20account%20to%20domain%20account%20for%20application%20pool%20identity%3C%2FLI%3E%3CLI%3EMake%20sure%20to%20use%20the%20same%20encryption%20provider%20(IISWASOnlyCngProvideror%26nbsp%3BIISCngProvider)%20in%20applicationHost.config%3C%2FLI%3E%3CLI%3EChange%20application%20pool%20process%20model%20from%26nbsp%3BLogonBatch%26nbsp%3Bto%26nbsp%3BLogonService%3C%2FLI%3E%3CLI%3EIf%20it%20is%20a%20shared%20configuration%20setup%20in%20IIS%2C%20use%20the%20same%26nbsp%3BIISWASKey.%3C%2FLI%3E%3C%2FOL%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EAkshay%3C%2FP%3E%3CP%3EIIS%20Admin%20%7C%20%3CA%20href%3D%22https%3A%2F%2Fwww.apps4rent.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EApps4Rent%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-680940%22%20slang%3D%22en-US%22%3ERe%3A%20Event%20ID%205059%20(Application%20pool%20has%20been%20disabled)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-680940%22%20slang%3D%22en-US%22%3E%3CP%3Ej%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

An IIS website may display “HTTP 503 – Service Unavailable” error when the application pools don’t have correct configuration or permissions which causes them to unexpectedly stop. Event ID 5059 clearly shows the reason behind the 503 error: “Application pool has been disabled”.

 

You may also see 5021 (The identity of application pool %1 is invalid) and 5057 (Application pool %1 has been disabled) in Event Viewer. Here are the detailed error messages:

 

Event ID 5021

The identity of application pool %1 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.

Source

 

Event ID 5057

Application pool %1 has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.

Source

 

Event ID 5059

Application pool %1 has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.

Source

 

Checklist to solve “Application pool has been disabled” error

HTTP 503 status code and 5059 event ID may indicate issues related to account permissions or IIS configuration. Here is a list of things to try. You may need to restart IIS or machine after each change.

 

  1. The account used as application pool identity shouldn’t be locked
  2. Reset the password of the application pool identity account in case it is expired
  3. Switch from built-in account to domain account for application pool identity
  4. Use another domain account as application pool identity
  5. Give “Full Control” to application pool identity account on shared data and configuration folders
  6. Give “Log on as Batch Job” permission to the application pool identity account
  7. Add the application pool identity account to IIS_USRS group
  8. Check account information in applicationHost.config for possible typos
  9. Recreate application pools, websites, and shared configuration (if used)
  10. Make sure to use the same encryption provider (IISWASOnlyCngProvider or IISCngProvider) in applicationHost.config
  11. Change application pool process model from LogonBatch to LogonService
  12. If it is a shared configuration setup in IIS, use the same IISWASKey
1 Comment
Regular Visitor

Thanks, for me the logon as batch was the final part.  I also needed to reset all of the password used by the different sharepoint services as well.