Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Error 503. The service is unavailable under simple ASP.NET 4.0 web site

Something strange happened on my local laptop: my web site that worked locally for a long isn't launched...

Trying to localize the problem I've created a simple web site with 'index.html' file only. It works fine under ASP.NET 2.0, but when I switched App Pool to use 4.0 - it stopped to work.

When I open web site in browser it shows the following error:

Service Unavailable

HTTP Error 503. The service is unavailable.

And causes App pool to stop work also... In the system event log in "applications" section I have:

The worker process failed to initialize correctly and therefore could not be started. The data is the error.

Please advise. Can't find anything related in Google... :(

P.S. I have VS2010, Windows Vista x64, last updates installed, VS SP1 is also installed...

like image 283
Budda Avatar asked May 24 '11 04:05

Budda


People also ask

How do I fix resolve 503 Service Unavailable in IIS?

In IIS, go to the Application Pools under the Server, then find the correct Application Pool for your web site, and click on it. On the Advanced Settings menu to the right, select Identity and change it and enter new user and password. Click on your Application Pool again, and select Recycle to restart it.

How do I fix HTTP Error 503 the service is unavailable Sharepoint?

Go to Start >> All Programs >> Administrative Tools >> Internet Information Services (IIS) Manager. Locate your App Pool account and right-click on it and select “Advanced Settings”. Go to process model then Identity Click on the Identity >> Set and then give the user name, password and confirm password.

What causes a HTTP 503 error?

The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded.


2 Answers

I had to start the application pool that was set for my website and was automatically stopped on some error. (IIS (7.5 in my case)->Application Pools->Start stopped application pool.)

like image 117
rafoo Avatar answered Sep 24 '22 02:09

rafoo


I've reinstalled .NET 64 - that helped.

P.S.

It seems like either some files in "C:/windows/Microsoft.net/Framework64/v4.0.30319/" folder or I removed them myself (VS sometimes complains on files in "ASP.NET Temporary files" and their deletion helps)... Probably I didn't pay attention that those folder not a temporary...

P.P.S.

In this case, why VS complained on files in "C:/windows/Microsoft.net/Framework64/v4.0.30319/" folder... ok, now it's hard to say.

like image 24
Budda Avatar answered Sep 26 '22 02:09

Budda