fhnaylor
fhnaylor

Reputation: 45

Service Unavailable in IIS

When I access a wrong call to a sql server data into my application in classical ASP I get this message in my entire site: Service Unavailable. It stopped. My site is in a remote host. Don´t know what to do. What can I tell to the "support team" of them to fix that?

Upvotes: 0

Views: 2944

Answers (5)

Cyril Gupta
Cyril Gupta

Reputation: 13723

Whenever there are a number of subsequent errors in your asp.net page, the application pool may shut down. There's a tolerance level, typically 5 errors in 10 mins, or so. Beyond this level, IIS will stop the service. I've run into a lot of problem due to this error.

What you can do is either fix all your websites (will take time), or increase the tolerance level or just disable the auto shutdown system. Here's how

Run IIS
Right click on the node 'Application Pools' in your left sidebar.
Click on the tab 'Health'
Remove the check on 'Enable Rapid Fail Protection' 

or change the tolerance level.

Hope that helped.

Upvotes: 1

JTew
JTew

Reputation: 3179

If you check out Administration Tools/Event Viewer - Application log you will probably see an error message.

This should give you more information as too why the application pool died or why IIS died.

If you paste this into your question we should be able to narrow things down a bit.

Upvotes: 1

Robert Wagner
Robert Wagner

Reputation: 17793

Could be a SQL exception in your Application_Start (or similar) method in Global.asx. If the application (ASP.NET worker process) can't start, it can't run, so the worker process has to shut down.

Upvotes: 0

Brody
Brody

Reputation: 2074

Application pools can stop if they error. Usually after 5 errors in 5 minutes IIS shutsdown the AppPool. It is part of the Rapid-fail protection and it can be disabled for an AppPool otherwise the AppPool has to be restarted every time it happens.

These settings can be changed by the IIS administrator. It looks like you can setup a script to restart and app-pool so you should be able to set up a new web application (in a different app-pool) to restart your closed app-pool. Hoster might not like that though.

Best result for you would be to catch all the exceptions before they get out into IIS.

Upvotes: 0

Brian Adams
Brian Adams

Reputation: 996

One reason you can get this is if the application pool has stopped.

Upvotes: 0

Related Questions