Error "Cannot copy file: Cannot read from the source file or disk." copying items under the Documents node in Visual Studio Team Explorer

Article translations Article translations
Close Close
Article ID: 955377 - View products that this article applies to.
Expand all | Collapse all
Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Action

You are using Team Foundation Server (TFS) 2008 with Windows SharePoint Services 2.0 or 3.0. You connect to this TF server using Team Explorer 2005 or 2008. You expand the "Documents" node and try to copy an item listed there to you local machine (either by drag and drop or by copy/paste on the context (right-click) menu).

Result



If your client operating system is Windows Vista or Windows Server 2008 the item is not copied and you receive no feedback at all (no messages, error or otherwise). If your client operating system is Windows XP or Windows Server 2003 you may receive this error message:

"Cannot copy file: Cannot read from the source file or disk."

Cause

This can happen if the "WebClient" service is not enabled on the client PC or if the entries for "BaseSiteUrl" and "BaseSiteUnc" in the TFS TfsIntegration.tbl_subscription table have incorrect entries.

Resolution



The following are potential workarounds for this issue:

1. Ensure that the Web Client service is running on the client PC. On Windows XP, Server 2003, and Vista you can access this service via Control Panel>Administrative Tools>Services. Make sure the "WebClient" service is started and that it is set to start automatically. In Windows Server 2008 the "WebClient" service is now part of the "Desktop Experience" feature and is not installed by default. To enable the "WebClient" service on Windows Server 2008:

    a. Open Server Manager and click the Features node.
    b. If "Desktop Experience" in not already listed under Features, click "Add Features".
    c. Select the "Desktop Experience" item and then click Next followed by Install.
    d. Reboot the PC as instructed.



2. In the event that enabling the WebClient service on client the PC running Team Explorer does not resolve this issue, try adjusting the case of the entries for "BaseSiteUrl" and "BaseSiteUnc" in the TFS TfsIntegration.tbl_subscription table:

    a. Use Microsoft SQL Server Management Studio to connect to the SQL data engine on the TFS data tier.
    b. Open the TfsIntegration.tbl_subscription table.
    c. Locate the the URL values for the "BaseSiteUrl" and "BaseSiteUnc" NAME entries. Change the "/Sites" portion of these URL values to all lowercase. For example, change:
 
        http://TFS08:80/Sites
        \\TFS08\Sites
 
    to...

        http://TFS08:80/sites
        \\TFS08\sites

Once these changes has been made on the server, all users experiencing this problem should exit Team Explorer. They should also clear their client TFS cache by deleting the 1.0 (for Team Explorer 2005) or 2.0 (for Team Explorer 2008) folder which is located here (it will be recreated the next time Team Explorer starts):

   Windows Vista/Windows Server 2008: %LocalAppData%\Microsoft\Team Foundation
   Windows Server 2003 / Windows XP: %UserProfile%\Local Settings\Application Data\Microsoft\Team Foundation  

3. If none of the previous workarounds help, try mapping a drive from the client PC to the SharePoint site for the project where you experience the issue. For example, if the issue is with team project "ProjectOne" on TF server "TFS08", map a drive to \\TFS08\sites\ProjectOne and log in if prompted. You may need to reestablish this connection and log in each time the client machine restarts.

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

Properties

Article ID: 955377 - Last Review: July 7, 2008 - Revision: 1.1
APPLIES TO
  • Microsoft Windows SharePoint Services 2.0
  • Microsoft Windows SharePoint Services 3.0
  • Microsoft Visual Studio 2005 Team Foundation Server
  • Microsoft Visual Studio Team System 2008 Team Foundation Server
Keywords: 
kbnomt kbrapidpub KB955377

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com