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

15 Comments

  1. Sanjay Uttam says:

    Worked! Thank you

  2. Don says:

    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.

  3. eXton says:

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

  4. ekaeae says:

    Thanks to you, the problem was solved

  5. […] finally found the solution here. Since that appears to be the only page that shows up in google describing this, I will duplicate […]

  6. Girisha Mahalingappa says:

    Thanks alot. It worked like a charm.

  7. Madhuri says:

    Wow…your solution worked….thank you so much

  8. Kenneth Pedersen says:

    Thanks, worked for me too.

    …but I must say it’s ugly, that there isn’t a checkmark in VS for setting these registry values back.

  9. Ather Murtuzapurwala says:

    Thanks this worked for me too…

  10. Jon says:

    The “trick” is in the file menu.

    File > Source Control > Go Online

  11. Abhishek says:

    Cool, the trick worked and saved my time.
    Thanks alot. 🙂

  12. orn says:

    On newer versions of Visual Studio Jon’s suggestion will work just fine.

  13. Ken Ferrell says:

    Thanks, that seems to have worked.

  14. […] Software Creations – Orn Kristjansson » … – Thank you, this really saved my day. Visual studio was totally crapped up and my solution was always offline. […]

  15. Sushmitha says:

    Thanks, this trick worked 🙂
    Source Control > Go Online>

Leave a Reply