Aleks

Hi,

I'm trying to use Visual Studio 2003 with Team foundation thru "Visual Studio Team Foundation Server MSSCCI Provider".

I added a website in the source control successfuly.

When I try to check out a file, I get a message box telling me "Item is not controlled"

So I check it out with Team Explorer and when I try to check in with VS2003 I get a message box telling me "The operation could not be completed".

I then try to add a second project (class library). The project is added but I can't check in it with VS 2003 neither with Team Explorer.

Team Explorer tell me : "Error. No pending changes"

I would greatly appreciate any help.

Thank you.




Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Aleks

I'm continuing testing and, in fact, I have no problem with the class library project.

Only the WebSite project has the above problem ...

Any help






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Michal Malecki - MSFT

Could you write what kind of website and how did you add it to source control

Thanks






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Aleks

Well it is an ASP.NET 1.1 website. It is just an empty project (I just create this project for testing purpose).

So I first created the project and I then added it to the TFS source controler from VS 2003 (File -> Source Control -> Add to source control).

Concerning the class library, I checked out the sln from Team Explorer (VS 2005), I added a new project to the sln (the one where is the website) and I added it to the source control as I did for the website (from VS 2003).

Thank you.






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Aleks

OK I understand what was the problem :

When you create a WebSite project in VS 2003, the solution file is place in your "My Documents" folder while the web site is put in wwwroot folder.

But, TFS create only one workspace for the folder in "My Documents".

The solution is to delete the folders and workspaces and make a "Get Latest". Then, configure the IIS virtual directory to point in the project in your "My Documents".

I think that his is a bug that should be corrected in the 1.3 release. What do you think about that

I have know another problem with a setup project. I am unable to bind it to the source control. It is always written "Invalid".

Any idea about that one

Thank you.






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Michal Malecki - MSFT

This is not how TFS Msscci provider works by design, so I would like to understand what exactly happened.

I just created new ASP .NET Web Application. The sln file is in Documents and Setting, the website is in inetpub, just like you said. However, when I do "Add solution to Source Control" VS asks mew twice about location in the repository (once for solution, once for website) and 2 workspace mappings are created.

About Setup Project. I created Setup Project, clicked "Add Solution to Source Control", checked in the files. Everything seems to be working. If you are trying to bind - are those files already on the server Do you reference any files that are outside of the project folder

Thanks






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Aleks

OK

I tested it again and I have the same behavior that you have until the second time that VS ask me for repository location.

Here, after clicking OK to create the second workspace (in wwwroot), I get a "The operation could not be completed".

When I check my worspaces for this project, I have only a workspace for the wwwroot folder

I really don't understand what happen. And this message is not really instructive. Is there somewhere a log file where I can have more informations

Concerning the setup project, maybe the problem is that some project is not building successfully (I'm just migrating these project in TFS and I miss some dlls).

So, the output set in the setup project link to dlls that does not exists.

I'll keep you in touch today when I will add missing dlls (as soon as I meet the developper).

Thanks






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Aleks

Well,

I fixed every problem in order to be able to build but my Setup project is allways mark as invalid.

Don't know why ...

Thanks






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Michal Malecki - MSFT

About the websites:

you should not create second workspace for your wwwroot. I find it a very bad practice to enlist one solution in multiple workspaces and I'm not sure if we tested this scenario. When you add solution to SCC, each time you should only select server path, leaving the same workspace. Please try this to see if this fixes this problem.

About setup projects:

Could you provide some simple example of the project that fails to add to SCC (You are using "Add to Source Control", right ). We have done only simple tests with setup projects and I know that even in VS2005 this project has limitations, when it comes to SCC operations.

Thanks






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Aleks

Websites:

I agree with you. But VS2003 automatically put source code of a website in wwwroot (or in the default IIS folder). This is by design.

Setup projects :

Here is some informations :

- This setup project came from a migration from a VSS base

- Some outputs, content and ressource files (from other project in the same solution) are placed in the file system

- No registry key are manipulated

- User Interface are not changed

- There is not custom actions

- There is two launch conditions : IIS and .net Framework should be present

I cannot join any file to the post so here is a description of the visual in VS 2003 (solution explorer) :

- The project has a blue lock

- "Detected Dependencies", "Primary output ...", "Content Files ...", "Localize resources ...", has nothing special

- There are 4 dlls with a red check

When I go to "File" -> "Source Control" -> "Change Source Control" this project is mark a "invalid" and the relative path is equal to the name of the project while the other project is just a "."

When I try to "check in" I get a "Not specified error"

Thank you






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Michal Malecki - MSFT

Websites:

It doesn't matter that website is in different folder than the solution. TFS Workspace can have multiple mappings - please look into Team Foundation Client, File->Source Control->Workspaces

Setup:

I must admit that I don't have huge experience with setup projects and screenshots and detailed description would be helpful. You may send me email from http://blogs.msdn.com/michalma/contact.aspx (I will send email back, if you need to send attachment).

You may also turn on tracing:

http://blogs.msdn.com/michalma/archive/2006/12/08/tracing-in-tfs-msscci-provider.aspx

to see what happens when you get unspecified error.

Hwo did you add this project to source control Or VssConverter did it and now you are trying to rebind






Re: Team Foundation Server - Version Control VS 2003 + TFS (MSSCCI Provider) = The operation could not be completed

Aleks

OK I'll send you an email.

But I will first look at how to turn on tracing and look at these trace.

Thank you.