{"id":684,"date":"2010-02-11T09:15:22","date_gmt":"2010-02-11T15:15:22","guid":{"rendered":"https:\/\/anildesai.net\/?p=684"},"modified":"2010-02-11T09:15:22","modified_gmt":"2010-02-11T15:15:22","slug":"connection-errors-when-migrating-from-visual-sourcesafe-vss-to-team-foundation-server-tfs-using-vssconverter-error-tf31002","status":"publish","type":"post","link":"https:\/\/anildesai.net\/index.php\/2010\/02\/connection-errors-when-migrating-from-visual-sourcesafe-vss-to-team-foundation-server-tfs-using-vssconverter-error-tf31002\/","title":{"rendered":"Connection errors when migrating from Visual SourceSafe (VSS) to Team Foundation Server (TFS) using VSSConverter (Error TF31002)"},"content":{"rendered":"<p><a href=\"https:\/\/anildesai.net\/wp-content\/uploads\/2010\/02\/image2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" align=\"right\" src=\"https:\/\/anildesai.net\/wp-content\/uploads\/2010\/02\/image_thumb2.png\" width=\"244\" height=\"140\" \/><\/a> If you haven\u2019t yet heard, the Release Candidate (RC) version of <a href=\"http:\/\/msdn.microsoft.com\/en-us\/vstudio\/dd582936.aspx\" target=\"_blank\">Visual Studio 2010<\/a> is now available to MSDN Subscribers.&#160; Personally, I was waiting for this release to move my primary development environment over to the new version.&#160; Overall, the installation and setup process was easy enough on two of my development machines.&#160; The biggest problems I ran into were related to migrating my dozen or so development projects from Visual SourceSafe to Team Foundation Server.&#160; I know I\u2019m a bit behind the curve, but I\u2019m an independent developer, and I was actually happy enough with VSS.<\/p>\n<h2>Using VSSConverter<\/h2>\n<p>The VSSConverter.exe utility is Microsoft\u2019s command-line tool for migrating Visual SourceSafe repositories to Team Foundation Server.&#160; The utility includes <u>analyze<\/u> and <u>migrate<\/u> modes and is driven by XML-based configuration files.&#160; The process was simple enough and is documented in the following MSDN articles:<\/p>\n<ul>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms253060%28VS.80%29.aspx\" target=\"_blank\">Migrating from Visual SourceSafe<\/a><\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms181246%28VS.80%29.aspx\" target=\"_blank\">Walkthrough: Preparing to Migrate from Visual SourceSafe to Team Foundation<\/a><\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms181247%28VS.80%29.aspx\" target=\"_blank\">Walkthrough: Migrating from Visual SourceSafe to Team Foundation<\/a><\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms253188%28VS.80%29.aspx\" target=\"_blank\">How to: Migrate Source Control Bindings from Visual SourceSafe<\/a><\/li>\n<\/ul>\n<h2>Migration Errors<\/h2>\n<p>The basic process went well until I got to the step of actually performing the migration.&#160; That\u2019s when I encountered the following dreaded TF31002 error:<\/p>\n<p><a href=\"https:\/\/anildesai.net\/wp-content\/uploads\/2010\/02\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/anildesai.net\/wp-content\/uploads\/2010\/02\/image_thumb3.png\" width=\"456\" height=\"237\" \/><\/a> <\/p>\n<p>I checked my server name, port, and other settings numerous times but still couldn\u2019t get it to work.&#160; Web searches provided some basic troubleshooting information, but nothing relevant to my issue.&#160; All diagnostics that I ran (including the Best Practices Analyzer from the <a href=\"http:\/\/msdn.microsoft.com\/en-us\/teamsystem\/bb980963.aspx\" target=\"_blank\">Team Foundation Server Power Tools<\/a>) reported that everything was OK.<\/p>\n<h2>The Solution\u2026<\/h2>\n<p>I finally stumbled upon the solution in an old bug reported via Microsoft Connect.&#160; The defect report is titled <a href=\"https:\/\/connect.microsoft.com\/VisualStudio\/feedback\/details\/500032\/vssconverter-cannot-connect-to-the-team-foundation-server?wa=wsignin1.0\" target=\"_blank\">VSSConverter cannot connect to the Team Foundation Server<\/a> and offers the following problem description and solution:<\/p>\n<blockquote>\n<p>When trying to migrate a Source Safe database to TFS2010 the VSSConverter tool exits with the following error:     <br \/>TF60070: Unable to connect to the Team Foundation Server: &#8216;http:\/\/ts01:8080\/&#8217;. Please ensure that the Team Foundation Server exists and try again.      <br \/>The Team Foundation Server exists but at http:\/\/ts01:8080\/tfs (default installation) The VSSConverter tool is unable to access this location.      <\/p>\n<p>UPDATE!     <br \/>There is a new configuration option in the TeamFoundationServer element to specify the collection to which the sourcesafe database should be merged. It&#8217;s nowhere to be found in the documentation yet.       <br \/>The solution is to add collection=&quot;tfs\/DefaultCollection&quot; to the TeamFoundationServer to specify which collection should be used. <\/p>\n<\/blockquote>\n<p>After adding the \u201ccollection=\u201d attribute, the migration worked flawlessly.&#160; It took about an hour to transfer all of my code and versions, but everything looks good now.&#160; The migration process could be simpler, but (if I\u2019m lucky), I\u2019ll only have to do this once.&#160; I hope this helps some of you that might have run into the same problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you haven\u2019t yet heard, the Release Candidate (RC) version of Visual Studio 2010 is now available to MSDN Subscribers.&#160; Personally, I was waiting for this release to move my primary development environment over to the new version.&#160; Overall, the installation and setup process was easy enough on two of my development machines.&#160; The biggest [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,24],"tags":[],"class_list":["post-684","post","type-post","status-publish","format-standard","hentry","category-development","category-it-tips"],"_links":{"self":[{"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/posts\/684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/comments?post=684"}],"version-history":[{"count":1,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/posts\/684\/revisions"}],"predecessor-version":[{"id":703,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/posts\/684\/revisions\/703"}],"wp:attachment":[{"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/media?parent=684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/categories?post=684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anildesai.net\/index.php\/wp-json\/wp\/v2\/tags?post=684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}