Tuesday, 17 November 2009

The solution is offline because its associated Team Foundation Server is offline

When opening a solution in Visual Studio 2008, I kept getting the following message in the Output window:

This solution is offline. [Team Foundation Server:
http://server:8080/]
The solution is offline because its associated
Team Foundation Server is offline.

I kept having to go into the "change source control" and re-bind the solution. After a while, this began to get annoying. Then I found this post: http://www.eggheadcafe.com/software/aspnet/33487526/connecting-automatically.aspx. It turned out the solution was to set some registry keys. I navigated to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers\ and changed "Offline" to 0 and "AutoReconnect" to 1. I've no idea how these got reset! (Please back-up your registry first if you want to try the same.)

4 comments:

Jussi said...

Just bumped into the same issue. I accidentally opened a TFS source-controlled solution without a network connection.

These registry changes worked fine.

Milan said...

Worked for me also. Not sure why it happened in the first place.

Thank you very much!!

nitesh said...

a great help. Thanks a lot :)

sadık said...

nice help saved a lot of time for me,thanks