The solution was offline during its previous session and will remain offline

If your .Net solution gets disconnected from your Team Foundation Server you might get the following message once you load your solution in Visual Studio. “The solution was offline during its previous session and will remain offline.” in the Output window and your solution is kept offline. Which means your local changes are not picked up automatically and you will need to do manual checkouts and checkins into the repository for local files you have changed.

The trick is to manually reset the values in the registry, where else ?
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers\ ( Your TFS server name )

set the values
AutoReconnect = 0
Offline = 0

Next time you open up your solution you will be asked if you want to connect to your Team Foundation Server, yes please.

Update…
If that does not work, try this one

Tags: , ,

  1. Don’s avatar

    Thanks alot!!! This has been driving me crazy for a while and I finally decided to do something about it. Glad I found you post quickly.

  2. eXton’s avatar

    Thank you, this really saved my day. Visual studio was totally crapped up and my solution was always offline.

  3. ekaeae’s avatar

    Thanks to you, the problem was solved

  4. Girisha Mahalingappa’s avatar

    Thanks alot. It worked like a charm.