TFS 2010 configuration issues:
1. Service Unavailable – HTTP Error 503. The service is unavailable.
2. No service host is available for the request
If you are experiencing one of these errors while trying to configure TFS 2010, please see the solutions which worked for me.
1. 503 error.
- Check the application pools (You should have two created on the installation of TFS 2010) and make sure they are running. In my case the application pool was being stopped. The Identity I used for this was the same as the local Admin account I created on the Windows 2008 R2 server where TFS 2010 has been installed but for some unknown reason, as soon as I try to access the TFS from Visual studio or browser, the application pool goes into Stopped status. I changed the Identity to Local Service and then the Application pool wasn't being stopped but then I was getting the second error, described below when trying to access it from VS 2010 or browser.
- I don't know if this is an issue but I altered between changing the .Net framework version to be used by the App pool from 2.0 to 4.0. I read many articles where some suggested using 2.0 while others suggested using 4.0. MSDN suggests using 4.0. Finally I ended up using 4.0 with the Identity as suggested below, then it worked for me.
2. No service host is available for the request.
- In my case, I created a local admin on the Windows 2008 R2 server where the TFS 2010 was installed and tried to use the same as Identity for my application pools but for some unknown reason the application goes into stopped mode as soon as I tried to connect to TFS via VS 2010 or browser. Finally changing the account in TFS console to Network service and using the same for the App pool's Identity fixed it for me.
So if none of the solutions online are working for you. Go ahead and browse the TFS Admin console, select the Application Tier, on the right hand side of Application Tier summary, click on Change Account and select the drop down list option for Network service. Restart your App pool (IIS if you need to).
Hope this helps!