VS2005 RC1 loses Source Control settings (using TFS Beta 3)

Since this problems seems to be with Visual Studio 2005 RC1 client, I am posting it here instead of at TFS forums.

I open up VisualStudio after a fresh install, go to Tools->Options->Source Control and set the plug in to Team Server. Then I go to Tools->Connect to team server and add our TFS Beta 3 server. At this point, Team Explorer is blank and there is no way to tell that window to refresh its contents.
Then I go to File->Source Control->Workspaces and create a workspace and map my TFS project to local drive. Then I do File->Source Control->Open from Source Control, the solution on the server. The solution is downloaded to my PC and everything works.
Now quit the IDE. Enter the IDE again. Click on solution short cut on start page or open the solution file on the hard drive, Visual Studio RC1 gives you first an error: "Object reference not set to a valid reference". Then you click OK and it says that source control plugin cannot be found - do you want to work temporarily disconnected or permanently disconnect the solution. Choose temporarily and check Tools->Options->SourceControl and it is now set back to "None".

I have posted this and other source control bugs on the MSDN site - but I wanted to know if anyone has seen this problem and if there is a patch available for this.

Thanks
Pawan


Answer this question

VS2005 RC1 loses Source Control settings (using TFS Beta 3)

  • Wsmith

  • Anon

    Here are the contents of the solution file:


    Microsoft Visual Studio Solution File, Format Version 9.00
    # Visual Studio 2005
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundation", "Foundation\Foundation.csproj", "{1ED9F69E-671B-401A-BCFC-D226A4FCF3B0}"
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "Core\Core.csproj", "{D3288E1E-914D-46D4-BBBE-D8931788D654}"
     ProjectSection(ProjectDependencies) = postProject
      {CE92F655-297F-480C-B43A-EDBBB0692178} = {CE92F655-297F-480C-B43A-EDBBB0692178}
     EndProjectSection
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuiLib", "GuiLib\GuiLib.csproj", "{57C44C4C-94C5-4C3E-A641-8B9E940D6BCA}"
     ProjectSection(ProjectDependencies) = postProject
      {CE92F655-297F-480C-B43A-EDBBB0692178} = {CE92F655-297F-480C-B43A-EDBBB0692178}
     EndProjectSection
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FanfareSVT", "FanfareSVT\FanfareSVT.csproj", "{85476E9C-06BB-4537-917F-0E8FC2CBD31B}"
     ProjectSection(ProjectDependencies) = postProject
      {CE92F655-297F-480C-B43A-EDBBB0692178} = {CE92F655-297F-480C-B43A-EDBBB0692178}
     EndProjectSection
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Test", "Core.Test\Core.Test.csproj", "{11D6DC43-D971-4BBB-8092-752FADA57E7D}"
     ProjectSection(ProjectDependencies) = postProject
      {CE92F655-297F-480C-B43A-EDBBB0692178} = {CE92F655-297F-480C-B43A-EDBBB0692178}
     EndProjectSection
    EndProject
    Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9E90720A-7374-40BA-BE19-C30F4E2D3667}"
     ProjectSection(SolutionItems) = preProject
      Jack.vsmdi = Jack.vsmdi
      localtestrun.testrunconfig = localtestrun.testrunconfig
     EndProjectSection
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Documents.Test", "Documents.Test\Documents.Test.csproj", "{958330D8-7CD2-40D7-8DEF-EB5B42C21CE5}"
     ProjectSection(ProjectDependencies) = postProject
      {CE92F655-297F-480C-B43A-EDBBB0692178} = {CE92F655-297F-480C-B43A-EDBBB0692178}
     EndProjectSection
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundation.Test", "Foundation.Test\Foundation.Test.csproj", "{B0CF47F3-FE4A-480D-B331-52FC9E285C59}"
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuiLib.Test", "GuiLib.Test\GuiLib.Test.csproj", "{C80E7C92-3AC7-4688-A936-B7806704FDA3}"
     ProjectSection(ProjectDependencies) = postProject
      {CE92F655-297F-480C-B43A-EDBBB0692178} = {CE92F655-297F-480C-B43A-EDBBB0692178}
     EndProjectSection
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Documents2", "Documents2\Documents2.csproj", "{CE92F655-297F-480C-B43A-EDBBB0692178}"
    EndProject
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ffsvt", "ffsvt\ffsvt.csproj", "{0B91C72B-CF3F-42B6-8C54-EF909E200C4B}"
    EndProject
    Global
     GlobalSection(TeamFoundationVersionControl) = preSolution
      SccNumberOfProjects = 11
      SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
      SccTeamFoundationServer = http://engtfsb3:8080/
      SccLocalPath0 = .
      SccProjectUniqueName1 = Core.Test\\Core.Test.csproj
      SccProjectName1 = Core.Test
      SccLocalPath1 = Core.Test
      SccProjectUniqueName2 = Core\\Core.csproj
      SccProjectName2 = Core
      SccLocalPath2 = Core
      SccProjectUniqueName3 = Documents.Test\\Documents.Test.csproj
      SccProjectName3 = Documents.Test
      SccLocalPath3 = Documents.Test
      SccProjectUniqueName4 = Documents2\\Documents2.csproj
      SccProjectName4 = Documents2
      SccLocalPath4 = Documents2
      SccProjectUniqueName5 = FanfareSVT\\FanfareSVT.csproj
      SccProjectName5 = FanfareSVT
      SccLocalPath5 = FanfareSVT
      SccProjectUniqueName6 = Foundation.Test\\Foundation.Test.csproj
      SccProjectName6 = Foundation.Test
      SccLocalPath6 = Foundation.Test
      SccProjectUniqueName7 = Foundation\\Foundation.csproj
      SccProjectName7 = Foundation
      SccLocalPath7 = Foundation
      SccProjectUniqueName8 = GuiLib.Test\\GuiLib.Test.csproj
      SccProjectName8 = GuiLib.Test
      SccLocalPath8 = GuiLib.Test
      SccProjectUniqueName9 = GuiLib\\GuiLib.csproj
      SccProjectName9 = GuiLib
      SccLocalPath9 = GuiLib
      SccProjectUniqueName10 = ffsvt\\ffsvt.csproj
      SccProjectName10 = ffsvt
      SccLocalPath10 = ffsvt
     EndGlobalSection
     GlobalSection(TestCaseManagementSettings) = postSolution
      CategoryFile = Jack.vsmdi
     EndGlobalSection
     GlobalSection(SolutionConfigurationPlatforms) = preSolution
      Debug|Any CPU = Debug|Any CPU
      Release|Any CPU = Release|Any CPU
     EndGlobalSection
     GlobalSection(ProjectConfigurationPlatforms) = postSolution
      {1ED9F69E-671B-401A-BCFC-D226A4FCF3B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {1ED9F69E-671B-401A-BCFC-D226A4FCF3B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {1ED9F69E-671B-401A-BCFC-D226A4FCF3B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {1ED9F69E-671B-401A-BCFC-D226A4FCF3B0}.Release|Any CPU.Build.0 = Release|Any CPU
      {D3288E1E-914D-46D4-BBBE-D8931788D654}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {D3288E1E-914D-46D4-BBBE-D8931788D654}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {D3288E1E-914D-46D4-BBBE-D8931788D654}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {D3288E1E-914D-46D4-BBBE-D8931788D654}.Release|Any CPU.Build.0 = Release|Any CPU
      {57C44C4C-94C5-4C3E-A641-8B9E940D6BCA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {57C44C4C-94C5-4C3E-A641-8B9E940D6BCA}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {57C44C4C-94C5-4C3E-A641-8B9E940D6BCA}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {57C44C4C-94C5-4C3E-A641-8B9E940D6BCA}.Release|Any CPU.Build.0 = Release|Any CPU
      {85476E9C-06BB-4537-917F-0E8FC2CBD31B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {85476E9C-06BB-4537-917F-0E8FC2CBD31B}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {85476E9C-06BB-4537-917F-0E8FC2CBD31B}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {85476E9C-06BB-4537-917F-0E8FC2CBD31B}.Release|Any CPU.Build.0 = Release|Any CPU
      {11D6DC43-D971-4BBB-8092-752FADA57E7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {11D6DC43-D971-4BBB-8092-752FADA57E7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {11D6DC43-D971-4BBB-8092-752FADA57E7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {11D6DC43-D971-4BBB-8092-752FADA57E7D}.Release|Any CPU.Build.0 = Release|Any CPU
      {958330D8-7CD2-40D7-8DEF-EB5B42C21CE5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {958330D8-7CD2-40D7-8DEF-EB5B42C21CE5}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {958330D8-7CD2-40D7-8DEF-EB5B42C21CE5}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {958330D8-7CD2-40D7-8DEF-EB5B42C21CE5}.Release|Any CPU.Build.0 = Release|Any CPU
      {B0CF47F3-FE4A-480D-B331-52FC9E285C59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {B0CF47F3-FE4A-480D-B331-52FC9E285C59}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {B0CF47F3-FE4A-480D-B331-52FC9E285C59}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {B0CF47F3-FE4A-480D-B331-52FC9E285C59}.Release|Any CPU.Build.0 = Release|Any CPU
      {C80E7C92-3AC7-4688-A936-B7806704FDA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {C80E7C92-3AC7-4688-A936-B7806704FDA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {C80E7C92-3AC7-4688-A936-B7806704FDA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {C80E7C92-3AC7-4688-A936-B7806704FDA3}.Release|Any CPU.Build.0 = Release|Any CPU
      {CE92F655-297F-480C-B43A-EDBBB0692178}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {CE92F655-297F-480C-B43A-EDBBB0692178}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {CE92F655-297F-480C-B43A-EDBBB0692178}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {CE92F655-297F-480C-B43A-EDBBB0692178}.Release|Any CPU.Build.0 = Release|Any CPU
      {0B91C72B-CF3F-42B6-8C54-EF909E200C4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
      {0B91C72B-CF3F-42B6-8C54-EF909E200C4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
      {0B91C72B-CF3F-42B6-8C54-EF909E200C4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
      {0B91C72B-CF3F-42B6-8C54-EF909E200C4B}.Release|Any CPU.Build.0 = Release|Any CPU
     EndGlobalSection
     GlobalSection(SolutionProperties) = preSolution
      HideSolutionNode = FALSE
     EndGlobalSection
    EndGlobal

  • Jeffes

    - This was Visual Studio 2005 Beta 2 solution.
    - Refresh button is disabled. You cannot click on it.
    - Resizing, opening, closing does not help.
    - In some installations, the button icons are gone (only way to know what those are, are by hovering over that area and waiting for tooltip to appear).

    Here are some part of contents of a project file:
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <ProductVersion>8.0.50727</ProductVersion>
        <SchemaVersion>2.0</SchemaVersion>
        <ProjectGuid>{D3288E1E-914D-46D4-BBBE-D8931788D654}</ProjectGuid>
        <OutputType>Library</OutputType>
        <AppDesignerFolder>Properties</AppDesignerFolder>
        <RootNamespace>Fanfare.SVT.Core</RootNamespace>
        <AssemblyName>Core</AssemblyName>
        <SccProjectName>SAK</SccProjectName>
        <SccLocalPath>SAK</SccLocalPath>
        <SccAuxPath>SAK</SccAuxPath>
        <SccProvider>SAK</SccProvider>

  • dseydel

    Can you post the contents of your .SLN file   If that's not an option, at least the GlobalSection() that contains the source control information   Also, the entries in your project files that contain elements like this <SccProjectName>, <SccLocalPath>, <SccAuxPath>, <SccProvider>.

    One other question, was this solution already a VS 2005 format or was it an older version


    As for the Team Explorer being blank there are a couple things to try:

    - There is a refresh button in the Team Explorer toolbar - it's the 1st button

    - Click the 3rd button over in the Team Explorer toolbar (the tool tip is "Add Existing Team Project".  Try checking/unchecking projects and hit OK.

    - In the past, we've seen some repaint issues.  These were usually taken care of via resizing or closing/reopening the Team Explorer window.

    Let us know if any of this helps.

    - Tim



  • sandeepkumar puppala

    I'm getting the same problem, but no "Object reference not set to a valid reference" error. When VS starts I get a warning about the Source Control Plug-in stating: "The project or solution you opened requires a source control plug-in that is unavailable at this time. To enable source control, please confirm that the plug-in has been installed correctly and then restart Microsoft Visual Studio"...

    Paul

  • nick_nyc

    I tried editing the Solution file for the projects to remove the GlobalSection(SourceCodeControl)  and it appears to have fixed the problem.
  • PChandra

    Hi Pawan,

    It seems that your issue is related to client-server discovery/communications.
    I'm moving your post to the TFS forums.

    Regards,

  • ssaha

    I just installed TFS Beta 3 and VS2005 RC1 this weekend. I do NOT have a problem maintaining the source control plug in, but other developers on my team are having problems. Does anyone have an idea for a fix yet
  • VS2005 RC1 loses Source Control settings (using TFS Beta 3)