503 Service Unavailable in IIS 7 - watch those Application Pools
I ran into a funky issue with an application on IIS 7 today on my development machine: One of my Web applications simply would not respond to requests and IIS was reporting a 503 Error – Service Unavailable. Oddly enough though the rest of my Web site was working just fine – just this one application/virtual wasn’t working. So at first I tried the usual – restarting IIS with IISReset, to no avail.
After some back and forth with the management console it turns out in IIS 7 that IIS 7 has a confusing option when you create a new Application Pool that ask whether you want to start the Application Pool immediately. This is not real obvious – in IIS 6 there was no such option and the Application Pool started automatically when a virtual/application was accessed for the first time. So when it asks for Start Immediately it’s not clear if the worker process that hosts the Application Pool starts immediately, or what. As it turns out when you say No to that question the Application Pool requires manual starting up.

Notice that there’s a Stop icon next the selected application pool. When this is set the pool will not automatically start and hence you get the Service Unavailable error. I suppose it’d be nice if the error message would be a little clearer in saying that the host process is unavailable.
The setting can be set in the Advanced Settings of the Application Pool:

Voila, my service runs again.
I’m not sure why you would EVER want to have an Application Pool not start automatically.
The Voices of Reason
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
cheers
greg
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
Can't seem to find anything in the documentation.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
Greetings...
I recieve the same error message on DefaultAppPool. initially its started, and when i try to browse default website configured under this default pool. i recieve the same error "HTTP Error 503. The service is unavailable." and DefaultAppPool is stopped...
when i check windows log.... i found following entries:
=> Application pool 'DefaultAppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
=> A process serving application pool 'DefaultAppPool' terminated unexpectedly. The process id was '4300'. The process exit code was '0xfffffffe'.
Please let me know how can i resolve this problem.
Thanks,
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
What would we normal guys do without all your advice and expertise.
I am in midst of setting up a website and going through the programming essentials because I do not want to use one of those WYSIWYG Website templates. By far no control over the site!
I've just installed and used the WampServer, set it's ports to 81, and wanted to use the IIS7 server again. That's when I ran into this Error 503. Incredible what one can find on the MS site; "excellent but not sufficient!" as Edward de Bono would say.
As a matter of fact: I do now have access to my localhost via IIS7 again.
Thanks a lot.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
We had 3 different app pools running and one didn't come back because it was set to "Don't Start Automatically".
You rock.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
Steve
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
Srini
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
I am on a shared hosting service. These days I am getting 503 error quite frequently. I am not able to know the exact reason. how could I Know the exact reason why it is happening?
I know about rapid fail protection which cause application pool to shut down for a particular number of error in a fixed time. but what type of error these can be for example these are not html errors obviously, not complilation error, then what type of errors/failures can cause application pool shutdown.
I have installed blog on my site and generaly when i view blog oages I get 503 error so what type of error/failure we could think of which can cause application pool to shutdown....
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
I say it's random because each time I run the page, different files fail with that error.
I have installed Fiddler to see whether I can get a handle on the situation and at first thought it was an issue with the JQuery code being used but it also seems to reject some CSS files (again random ones) and sometimes rejects the ScriptResource.axd.
It is a .NET application running on Windows Server 2008 using IIS 7; The application works absolutely fine on our dev box which is IIS 6.
There are no other applications running on the server and I have checked your theory of the Application Pool and that is still up and running.
Hope someone has an idea of what is happening as I have been trying to figure it out for ages.
Woody.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
It was found that the problem was related to the Application Pool in one sense.
We are using a dual server system with a Load Balanced configuration and we switched off server 2 a few weeks ago for maintenance reasons.
However, although the problems have only just been found, apparently the Load Balancer was still trying to get some random pages from the server 2 application pool instead of directing all traffic to the server 1 application pool.
Obviously as the server 2 application pool wasn't available, this caused the 503 error...
Cheers,
Woody.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
My apppools are running without any issues. Still I am getting this issue. I didnt found any information in Event Logs.
Please help me.
Regards,
Pradeep.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
Thanks for this wonderful contribution. Who could have ever suspected that this is the cause of the HTTP 503 error as the error message was not suggestive.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
-compdyn.dll
-validcfg.dll
In the C:\Windows\System32 folder.
Thanks! -Jesus is Good!!!
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
http://blogs.iis.net/webtopics/archive/2010/02/17/a-not-so-common-root-cause-for-503-service-unavailable.aspx
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
My apps in ASP 2.0 are 32 bits so they generated this error when migrated. Set to Enable-True and restart the service ... WORKING.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
On mine: the DefaultAppPool kept failing, until I changed its defaulted .NET Framework Version from v2.0 to v4.0, and enabled 32-bit applications.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
If your app pool is starting and then stopping very soon after, try updating the identity under advanced settings.
GL;HF
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
For me this started happening at the same time that my password expired, and because of a server hiccup I was unable to change my password and my host had to resync my password with some magic and I was able to at least access my server again.
However, because I was using my account as the identity on this application pool and my account/password was somehow weirded out application pool it kept stopping immediately after I would restart it. It was only when I changed the identity to default ApplicationPoolIdentity the problem went away.
I have a sneaking suspicion that if I change the password on my account and change the identity back to my own account it will be o.k.
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools
I also refer very helpful and useful article about Solving IIS 7 Error 503 Service Unavailable
Visit this helpful article
http://www.mindstick.com/Articles/c7eb99f0-5876-43ad-9ece-f8f633ebdb74/Solving%20IIS%207%20Error%20503%20Service%20Unavailable#.VgqHHJc0Xcc
http://forums.iis.net/t/1183179.aspx?Service+Unavailable+HTTP+Error+503+The+service+is+unavailable+
# re: 503 Service Unavailable in IIS 7 - watch those Application Pools