Visual Studio – Unable to connect to team foundation server

VS2012

Hello everyone,

 

Today I’ll talk about an error that I recently had with Visual Studio 2013 and TFS. One day reconnecting me in the morning, I had the strange surprise of not being able to make check-out/check-in in my code!

In my attempts, the “team explorer” window showed me a series of errors such as « System.ComponentModel.Composition.CompositionException: The composition produced a single composition error … »

 

Googling for the error, I did not find the reason for this. Of course I tried the standard resolutions

• Check the rights of my account in TFS

• close and re-open the application

• logoff-login

• reboot

but nothing has changed.

 

To solve this problem I had to delete the cache of Visual Studio! This cache is located in the following directory

C:\Users\{username}\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

After deleting all the contents (file and folders) and restarted my Visual Studio, everything works properly again.

 

Hope that helps!

 Christopher

Advertisements

Error while renaming site definition


Hello everyone,

Today I’ll talk about a problem I had when I tried to rename a site definition.

As a reminder when you create a site definition,  3 files are created

  •  « onet.xml »
  •  « webtemp_NomDuTemplate.xml »
  •  « default.aspx »

If you rename the “BlankSiteDefinition1” to “BlankSiteDefinitionRenamed”, don’t forget to change in all the files AND change the name of the “webtemp” file for « webtemp_BlankSiteDefinitionRenamed ».

If you make the change manually, you must not be forgotten that there is a hidden file! The SharePointProjectItem.spdata. It can be viewed by clicking on the “Show all files” in the “Solution Explorer”

Once clicked, you will see the file

In reviewing this file you will see references to your other 3 files you need you have to change.

Voilà.

Hoping that it saves you hours of research ..

Christopher.