80

IIS 7 Application Pool stops when browsing to http://localhost/

In Event Viewer -> System Log I see:

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

Are there other troubleshooting steps I can take to see a more detailed messages of why this is happening?

dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
  • probably you crash the pool, see http://stackoverflow.com/questions/3044752/how-do-i-crash-the-app-pool/3045137#3045137 – Aristos May 07 '12 at 15:48
  • This happens when I just browse to http://localhost/ which point to a default site in 'C:\inetpub\wwwroot' which only has iisstart.htm So it shouldn't be running any code. – dev.e.loper May 07 '12 at 16:05
  • May I request you to mark one of the answers as accepted. janjonas's answer has helped lot of users including me :) – RBT May 15 '17 at 06:35

6 Answers6

134

If your application pool is running under a specific identity, an expired password could be the cause for your problem.

I had similar problems, see http://blog.janjonas.net/2012-07-14/iis_75-fix-application-pool-disabled-windows-process-activation-service-failure-worker-process-event-id-5059

janjonas
  • 2,563
  • 2
  • 22
  • 26
34

In IIS, go to Application Pools, and check the Identity of your Application Pool.

Is the App Pool using a custom account? Does it need to be?

Try changing the Identify to a Built-in account like ApplicationPoolIndentity. To do this, go to Advanced Settings, Process Model, Identity. Remember to restart the App Pool after making your changes.

IIS Custom App Pool Identity

enter image description here

James Lawruk
  • 30,112
  • 19
  • 130
  • 137
19

Check that the account or group has the "Log on as Batch Job" permission checked. To change this policy on a domain controller perform the following steps:

  • Start>Run gpmc.msc - edit
  • Select Forest>Domains>Domain Name> Domain Controller
    • Right click on "Default Domain Policy" and choose edit
  • Next edit:
    • Computer Configuration>Policies>Windows Settings>Security Settings>Local Policies>User Rights assignment
  • Add user or group to "Log on as Batch Job"
    • Check group membership of service account (in Active Directory) if a particular group is being used for this purpose.
  • From the command prompt run "gpupdate /force"

Note: This is a resolution for the problem with SharePoint 2010.

Shrout1
  • 2,497
  • 4
  • 42
  • 65
  • This turned out to be my issue and I have NO idea how since this app has been running for years and the service is hardly touched :/ – rainabba Jun 04 '18 at 20:40
  • @rainabba Glad it helped! I recall this taking me a little while to figure out. Thanks for the upvote! – Shrout1 Jun 04 '18 at 20:55
10

I did the below steps.

  1. Windows+R open Run and type services.msc
  2. search for Windows Process Activation Service and start the service for me it was stopped.
  3. Windows+R type inetmgr.
  4. restart all the App pool.
  5. Try to start the website under Sites, if it gives an error saying cant start the service because of The World Wide Web Publishing service is stopped.
  6. repeat step 1.
  7. search for World Wide Web Publishing service, and restart the service.
Jaydeep Shil
  • 1,894
  • 22
  • 21
2

In my case: I already see the application pool running with right Identity, but I still see the "WAS encountered a failure...". So, I set the same Identity again by re-adding the user in Advance Settings --> Identity --> Custom Account, restarted IIS and it worked!

Kiran Modini
  • 1,184
  • 8
  • 5
1

adding to janjonas in my dev machine i changed PW to the account, and i didnt know that i had to re-set the user to every pool that runs under that user

bresleveloper
  • 5,940
  • 3
  • 33
  • 47