Microsoft KB Archive/946732

= TFS: Browser error opening workitem attachment from Visual Studio Team Explorer =

Article ID: 946732

Article Last Modified on 12/20/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Team Edition for Database Professionals
 * Microsoft Visual Studio 2005 Team Edition for Software Architects
 * Microsoft Visual Studio 2005 Team Edition for Software Developers
 * Microsoft Visual Studio 2005 Team Edition for Software Testers
 * Microsoft Visual Studio 2005 Team Suite
 * Microsoft Visual Studio 2005 Team System Test Edition
 * Microsoft Visual Studio 2008 Team Edition for Database Professionals
 * Microsoft Visual Studio 2008 Team Edition for Software Architects
 * Microsoft Visual Studio 2008 Team Edition for Software Developers
 * Microsoft Visual Studio 2008 Team Edition for Software Testers
 * Microsoft Visual Studio 2008 Team Foundation Server
 * Microsoft Visual Studio 2008 Team Suite

-



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 attempt to open a Team Foundation Server workitem attachment using the Visual Studio Team Explorer.



Result
Internet Explorer browser opens and displays an error message similar to the following:

&quot;The XML page cannot be displayed: An invalid character was found in text content. Error processing resource&quot;

The error message may also display the full URL path to the workitem attachment.



Cause
Team Foundation Server uses standard Internet protocols to communicate between the client and server. The workitem attachment download request is sent as an HTTP stream to the client workstation. The default application for handling these requests is the client Internet browser.

This error is caused by Internet Explorer default security settings which specifies to open items based on their actual content rather than file extension.



Resolution
To resolve this behavior and allow for successful download of the affected attachment, open Control Panel on the affected client computer. Open &quot;Internet Options&quot; from Control Panel. On the Internet Properties dialog select the Security tab then click the &quot;Custom Level...&quot; button. Locate the setting:  &quot;Open files based on content, not file extension&quot; and set this to &quot;Disable&quot;. You may need to restart Visual Studio for these changes to take effect.



More Information
This behavior does not occur if you use Visual Studio Team Foundation Server Web Access to download the workitem attachment.



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.

Keywords: kbnomt kbrapidpub KB946732

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.