Article ID: 919913 - Last Review: August 25, 2006 - Revision: 1.3 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"SYMPTOMSOn a computer that is running Microsoft Content Management Server (MCMS) 2002 Service Pack 2 (SP2), you try to use the source control feature in Microsoft Visual Studio 2005 Team Foundation Server to check in files. However, you receive the following error message: [Microsoft Visual Studio] Unable to cast object of type 'Microsoft.ContentManagement.DeveloperTools.VisualStudio.Documents.TemplateExplorerDocument' to type 'Microsoft.VisualStudio.Shell.Interop.IVsHierarchy'.
CAUSEThis problem occurs because the Microsoft.VisualStudio.Shell.Interop.dll library that MCMS 2002 uses is incompatible with the Microsoft.VisualStudio.Shell.Interop.dll library that is included with other products. These products include Visual Studio Industry Partners (VSIP) 7.1 and VSIP 8.0. RESOLUTIONTo resolve this problem, disable the MCMS Template Explorer when you use the Team Foundation service. When you disable the MCMS Template Explorer, the MCMS development tools are not loaded. To disable the MCMS Template Explorer for a specific MCMS template project, follow these steps for every MCMS template project:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. | Article Translations
|

Back to the top
