Wednesday 28 October 2009

TFS and MCMS Template Explorer

Opening an Microsoft Content Management Server 2002 project in Visual Studio 2005 with the MCMS 2002 SP2 installed when trying to checking in files in TFS gave me the following error

Unable to cast object of type 'Microsoft.ContentManagement.DeveloperTools.VisualStudio.Documents.TemplateExplorerDocument' to type 'Microsoft.VisualStudio.Shell.Interop.IVsHierarchy'.

Apparently it's a known error. To solve this problem, disable the MCMS Template Explorer when you use the Team Foundation service.

To do this open the Vwd.webinfo file located at the project's root with notepad and set the value of the CmsEnabled property to 0.

Check the microsoft link for more info:
FIX: Error message when you try to use Visual Studio 2005 Team Foundation Server to check in files on a computer that is running Content Management Server 2002: "Unable to cast object of type"

No comments:

Post a Comment