คำตอบ Binding Invalid

  • 12 ธันวาคม 2554 23:37
     
     

    I removed a Project from the solution, renamed the folder (as it was spelt wrong), and then re-added the project to the solution.

    Now the project says "Invalid" Status on the "Change Source Control" screen. 

    I can unbind it, but when I re-bind it, it just says invalid. If I hit OK and click "Fix Server Binding" it does nothing.

    How do I fix this?

    Seems like a bug to me.

ตอบทั้งหมด

  • 13 ธันวาคม 2554 7:48
    ผู้ดูแล
     
     

    Hi Peter,

     

    Thanks for your post.

     

    I tried the following steps to reproduce your scenario:

    1        Open the solution in Solution Explorer, right-click on project and select Remove to remove it.

    2        Rename that project’s folder name, then under Solution Explorer, right-click on solution and select Add>>Existing Project to re-add that project to solution.

    3        Perform check in on solution to ensure everything check in correctly.

    Then check the project’s status in Change Source Control window, the project be binging, and the Status is Valid. To Unbind and Re-Bind it in Change Source Control window, both work fine. 

     

    Which steps I missed? If you can reproduce your scenario, please provide the detailed steps here, and you can create a solution in your TFS Source Control to do a test, check if the issue occurred in this new solution.   

     

    For how to rename project and folder with TFS 2010, please refer to this article: http://memoprojects.blogspot.com/2010/03/rename-project-and-folder-within-tfs.html.  

     


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us

  • 13 ธันวาคม 2554 7:53
     
     
    Hi John, the project already has to be Source Control... so step 0. is to make sure it's already checked-in under the old folder.
  • 13 ธันวาคม 2554 7:55
    ผู้ดูแล
     
     

    Hi Peter,

     

    Yes, that solution has already be checked in my TFS 2010 Source Control.   


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
  • 13 ธันวาคม 2554 7:56
     
     
    Then like many things TFS, it will forever remain a mystery.
  • 13 ธันวาคม 2554 7:58
     
     
    Did you rename it in Windows Explorer? That's what I did.
  • 13 ธันวาคม 2554 8:07
    ผู้ดูแล
     
     

    Hi Peter,

     

    I copied the project to another local folder(not rename it under the solution local folder), then rename the project folder, then right-click on solution and select Add>>Existing Project to re-add it in solution. 


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
  • 15 ธันวาคม 2554 2:32
    ผู้ดูแล
     
     

    Hi Peter,

     

    Have you tried that?

     

    If you have any further research of this issue, please share your experience here.

     

    If misunderstood anything, please describe your question in more detail and we will be able to provide the better responses.


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
  • 15 ธันวาคม 2554 2:33
     
     คำตอบ
    I fixed it by hacking the CSPROJ file and removing any Source Control references... 
    • ทำเครื่องหมายเป็นคำตอบโดย John QiaoMicrosoft, Moderator 15 ธันวาคม 2554 2:34
    •  
  • 15 ธันวาคม 2554 2:35
    ผู้ดูแล
     
     

    Hi Peter, 

     

    Thanks for your reply.

     

    And thank you for sharing your experience here.

     

    All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community.


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
  • 22 ธันวาคม 2554 2:59
     
     คำตอบที่เสนอ

    I had a similar issue. I copy/pasted (through Windows Explorer) a project, and added it to a different solution. This made the binding invalid. To fix it, I had to:

    1. Click the "invalid" project in Solution Explorer.
    2. Open "File | Source Control | Change Source Control"
    3. Unbind the invalid project.
    4. In Solution Explorer, Unload the project.
    5. In Solution Explorer, Reload the project.

    As soon as I reloaded the unbound project, VS re-bound it for me, and it showed as "Valid".

     

    • เสนอเป็นคำตอบโดย MrChen 27 มีนาคม 2555 14:37
    •  
  • 22 ธันวาคม 2554 3:23
    ผู้ดูแล
     
     

    Hi Rally25rs, 

     

    Thanks for your reply.

     

    And thank you for sharing your experience here. It will be very beneficial for other community members having the similar questions.

     

    All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community.


    John Qiao [MSFT]
    MSDN Community Support | Feedback to us
  • 27 มีนาคม 2555 14:37
     
     

    I had a similar issue. I copy/pasted (through Windows Explorer) a project, and added it to a different solution. This made the binding invalid. To fix it, I had to:

    1. Click the "invalid" project in Solution Explorer.
    2. Open "File | Source Control | Change Source Control"
    3. Unbind the invalid project.
    4. In Solution Explorer, Unload the project.
    5. In Solution Explorer, Reload the project.

    As soon as I reloaded the unbound project, VS re-bound it for me, and it showed as "Valid".

     

    Thanks, this worked for me.

    Christian Jones Software Developer, former Network/Sys Admin

  • 17 เมษายน 2555 16:29
     
     

    Worked for me!

    Thank you!