Ask a questionAsk a question
 

AnswerAuto check out does not work in visual studio 2008

  • Tuesday, January 29, 2008 3:31 PMcodism Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Visual studio  2008 professional edition with team explorer installed. (Version number: 9.0.21022.8)

    I tried different options such as "Prompt for check out" and "check out automatically" but none of them worked for me. When I save a modified source file, visual studio shows me "the file x cannot be saved because it is write-protected...", looks like the editor is not hooked up with the TFS source control plug-in.

     

    Thanks in advance!

Answers

  • Tuesday, May 27, 2008 8:03 AMderuss79 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

     

    Go into source control bindings (File->Source Control->Change Source Control) - you may notice only the project is bound - not the solution. Select the solution, click Bind.

     

    Fixed our problem

All Replies

  • Tuesday, January 29, 2008 9:08 PMOgnjen BajicMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Is TFS VC turned on (Tools\Options\Source control\Current source control plug-in)?

    Have you added your solution to TFS VC? How does the Source Control Explorer look like (I mean - can you see your project there?)?

     

    Ognjen

     

  • Tuesday, March 25, 2008 8:37 PMneuracnu1 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am having a similar issue with Visual Studio 2008 under 64-bit Vista SP1.  The source control environment is set to Visual SourceSafe (using all the default settings), but the behavior is very inconsistent.  Sometimes attempting to edit the file with Visual Studio will check the file out, sometimes not.

    Also, I never get a check-out dialog despite not checking the "Don't show Check Out dialog box when checking out items" option under "Tools > Options > Source Control > Environment".
  • Tuesday, March 25, 2008 8:45 PMRichard Berg Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Are you editing files that are part of the active solution?
  • Tuesday, May 27, 2008 7:58 AMderuss79 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    We are experiencing same problem. Here is a little more info.

     

    Open solution directly from Source Control Explorer, and it does not attempt to save the file, and no warning generated - works ok.

     

    However, open solution from Windows Explorer, or from File->Open->Project/Solution, and this problem occurs (when attempting to Run the application).

     

    Saving the file to a different filename and comparing - the files are identical (even binary format) - there was no need to modify the file!

     

    Project is a VC++ project.

     

    Solution/Project was converted from VSS using the 'tf bind' utility - all bindings in .vcproj and .sln look fine.

     

    Try this: Delete file from local harddrive. Use Solution Explorer to Get Specific Version with both checkboxes ticked - the file will NOT be downloaded. Same operation via "tf" command line - still doesn't get it. Use the TFS API, and it does work!

     

     

  • Tuesday, May 27, 2008 8:03 AMderuss79 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

     

    Go into source control bindings (File->Source Control->Change Source Control) - you may notice only the project is bound - not the solution. Select the solution, click Bind.

     

    Fixed our problem

  • Thursday, October 29, 2009 4:38 PMfredster.w Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I had this problem and it turned out I was in offline mode without knowing it. In the solution explorer, I clicked the "go online" icon at the top at auto checkout started working.