J. Marsch

Hello:

I am getting an error when I attempt to rename a folder in Source Control Explorer.

Here are the steps to produce:

Create a folder under the team project folder

Rename the folder (the folder is empty, and has not been committed yet)

I get the following error (but the rename seems to work)

Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Shell.Interop.IVsProject2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{4AF886C3-7796-4C81-A174-4A87080DEE58}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002(E_NOINTERFACE)).

The operation seems to work, but that error message is not confidence inspiring -- I'm worried that perhaps the operation only partially completed -- I don't want any database anomalies.

It Looks like something isn't registered. Has anyone seen this before



Re: Team Foundation Server - Version Control Error in Source Control Explorer when renaming a folder

Eugene Zakhareyev

I do not think that you will have any problems in DB due to that error - after all, the changes need to be checked in for that. I have seen something similar (though I believe the error was something with null object reference). The thing is - if you refresh SCE, does the folder name is new Also - if you delete folder and create a new one (instead of renaming), do you have any issues And lastly - do you have VS2005 SP1 installed TF server SP1 installed

Cheers, Eugene






Re: Team Foundation Server - Version Control Error in Source Control Explorer when renaming a folder

Hua Chen - MSFT

Hello J. Marsch:

Eugene is right.

You don't need to worry about it too much.

This is an known issue has been recorded.

It should be resolved in the next version Orcas formally.

If you havn't apply SP1 for VS 2005 you may try it.

Here is the download link:

Microsoft Visual Studio 2005 Team Suite Service Pack 1

Visual Studio 2005 Service Pack 1 Update for Windows Vista

Good luck.






Re: Team Foundation Server - Version Control Error in Source Control Explorer when renaming a folder

J. Marsch

Thank you for your responses. I am running VS Service Pack 1, but I have not applied the update for Vista (the test machine is running XP).

Just to be clear -- the rename did occur. The first responder's post indicated that he felt that everything should be ok becuase nothing was The first responder's post indicated that he felt that everything should be ok becuase nothing was written to the database.

the folder has its new name after performing the refresh, so something did get committed to the database. Do you both still agree that this is harmless





Re: Team Foundation Server - Version Control Error in Source Control Explorer when renaming a folder

Eugene Zakhareyev

Database will be updated only when you check in your pending add. Do you have any problems checking that in

Cheers, Eugene






Re: Team Foundation Server - Version Control Error in Source Control Explorer when renaming a folder

Hua Chen - MSFT

Hello:

As I know this problem is related to Version Control Client.

There is no report shows harm to the Server Database now.

But your scenario is slightly different from the recorded problem.

You may also submit it to the following site in the way:

http://connect.microsoft.com/VisualStudio/

It will be very valuable for fixing it.

Thank you very much.






Re: Team Foundation Server - Version Control Error in Source Control Explorer when renaming a folder

J. Marsch

Thank you for your response, and I will file a report in connections site!



Re: Team Foundation Server - Version Control Error in Source Control Explorer when renaming a folder

J. Marsch

You're right -- I didn't get any errors during check in. I'm still getting used to the fact that everything -- even name changes and branches are part of a change set and must be checked in. Very cool!



Re: Team Foundation Server - Version Control Error in Source Control Explorer when renaming a folder

leewsimpson

Im having the same issue, I cannot undo the checkout it gives this error, and I cannot check it in as the file has subsequently been removed.

<RANT>
I dont agree with you comment - resolved in the next version Orcas... Why should we as customers be forced to BUY the new release to fix the bugs They should be in the service packs - thats why we pay the big bucks for the software in the first place - otherwise we would just go open souce...

</RANT>