Microsoft KB Archive/916759

= Error message when you try to publish a ClickOnce application in Visual Studio 2005: &quot;Unable to download a required file. You may retry downloading the file or cancel setup&quot; =

Article ID: 916759

Article Last Modified on 4/7/2006

-

APPLIES TO


 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Team System Developer Edition
 * Microsoft Visual Studio 2005 Team System Architect Edition

-





SYMPTOMS
Consider the following scenario. You try to publish a ClickOnce application to a Web server in Microsoft Visual Studio 2005. You run the Setup.exe file from the Web page that you specified as the publish location. In this scenario, you may receive the following error message:

Unable to download a required file. You may retry downloading the file or cancel setup

Additionally, the following text appears under Details:

An error occurred downloading the following resource: ReportViewerExe



CAUSE
This problem occurs when all the following conditions are true:
 * You are using a non-English version of Visual Studio 2005.
 * You select the Microsoft Visual Studio 2005 Report Viewer option as a prerequisite to publish the application.
 * You select the Download the prerequisites from the component vendor's web site option for the installation location of the prerequisite.

Note The word &quot;Web&quot; is capitalized incorrectly in this option name.



WORKAROUND
To work around this problem, follow these steps:  Open the following folder:



Note  represents the drive on which you install Visual Studio 2005. represents the localized version of the ReportViewer control. In a text editor, open the Package.xml file.  Before the closing tag of the  element, insert the following line of code: http://go.microsoft.com/fwlink/?LinkId=49981  Save the Package.xml file, and then close the text editor. Publish the application in Visual Studio 2005 again.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="references_section">