IIS HTTP Error 503. The service is unavailable

Hi, Setting up a new virtual directory/application in IIS, Is it giving this wired error when you try to browse to localhost saying “HTTP Error 503. The service is unavailable.” ? Don’t just give up, you can try the below step to fix the issue.

1. Check if the application pool is not started/enabled for the website in IIS.

2. Check whether the identity assigned to the application pool is not active and uses the correct password. Sometimes Developers use their own LogInId as appPool Id and change password later point. This happened to me 🙂

3. Check whether the identity has access to physical folder the Virtual directory is pointed to.

4. Enable Failed Request Tracing Rules and see log if anything is getting generated.

How to check application pool status ?

Step 1: Start > Run > type “inetmgr”, the command open IIS

Step 2: Locate your application/Virtual directory.Capture-http501.1

Step 3: Look for the application pool of the selected website.Capture-http501 apppool

Step 4: Select the Application Pool and click on the Action Bar on the right side, Edit Application Pool Section Advance Settings Link.

Capture-apppol identity

Step 5: Verify the identity mentioned in Process Model Section Identity Textbox is active and uses the correct password, click on the right side of Identity Textbox in case you want to change the id/password.

Capture-app pool id
Step 6: Now go back to Application pool list window, Right click on the application pool name in the Application Pool list and then select the Start option from the context menu.

Step 7: Also check the identity has access the physical path to which the the virtual directory. If the error wouldn’t get resolved after performing steps  1 to 6.

Thanks for reading, Happy Coding!

Advertisements
This entry was posted in ASP.NET, IIS and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s