{"id":3933,"date":"2006-04-07T08:00:00","date_gmt":"2006-04-07T08:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2006\/04\/07\/problem-with-checking-in-from-a-microsoft-content-management-system-solution\/"},"modified":"2006-04-07T08:00:00","modified_gmt":"2006-04-07T08:00:00","slug":"problem-with-checking-in-from-a-microsoft-content-management-system-solution","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/problem-with-checking-in-from-a-microsoft-content-management-system-solution\/","title":{"rendered":"Problem with checking in from a Microsoft Content Management System solution"},"content":{"rendered":"<p>This has come up twice now, so it seems to be worth posting in the hopes that folks will find it when searching for the error message.<\/p>\n<p>Here&#8217;s the scenario.<\/p>\n<ul>\n<li>In Visual Studio 2005, add a Microsoft CMS project to TFS version control and check it in.<\/li>\n<li>Check out a file in that CMS project and then try to check it in.<\/li>\n<li>The following error occurs:&nbsp; Unable to cast Microsoft.ContentManagement.DeveloperTools.TeamExplorer&#8230;<\/li>\n<\/ul>\n<p>Ben Ryan, a developer on version control, describes the problem and the workaround as follows.<\/p>\n<blockquote>\n<p>The root cause of the problem is that the CMS Service Pack that adds support for&nbsp;Visual Studio 2005&nbsp;is built against a version of the Microsoft.VisualStudio.Shell.Interop.dll assembly that is incompatible with the version we ship with other products (i.e. VSIP 7.1 and VSIP 8.0).&nbsp; Therefore, the IVsHierarchy that Microsoft.ContentManagement.DeveloperTools.TeamExplorer&nbsp; subclasses cannot be cast to the IVsHierarchy that TFS references in its managed package. <\/p>\n<p>We are engaging the Content Management Server team to resolve this issue.<\/p>\n<p>In the meantime you can work around the issue by <strong><em>closing the solution<\/em><\/strong> and checking in from the Pending Changes toolwindow or by checking the files in from the command line.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This has come up twice now, so it seems to be worth posting in the hopes that folks will find it when searching for the error message. Here&#8217;s the scenario. In Visual Studio 2005, add a Microsoft CMS project to TFS version control and check it in. Check out a file in that CMS project [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[6,8],"class_list":["post-3933","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-source-control","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>This has come up twice now, so it seems to be worth posting in the hopes that folks will find it when searching for the error message. Here&#8217;s the scenario. In Visual Studio 2005, add a Microsoft CMS project to TFS version control and check it in. Check out a file in that CMS project [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/3933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=3933"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/3933\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=3933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=3933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=3933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}