You may receive an "unable to build project output 'content files from WebApplicationName'" error message when you build a deployment package in Visual Studio .NET (835458)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition

SYMPTOMS

When you try to build a deployment package in Visual Studio .NET, you may receive the following error message:
Unable to build project output group 'Content Files from WebApplicationName'
Note In this error message, WebApplicationName is a placeholder for the name of the Web application that is part of the project.

CAUSE

This behavior occurs if dependency files for the Web application are missing from project.

RESOLUTION

To resolve this behavior, you can replace any missing dependency files, or you can remove the file that requires them if the project does not require that file.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to reproduce the behavior

  1. Create a Web Setup project:
    1. Start Visual Studio .NET.
    2. On the File menu, point to New, and then click Project. The New Project dialog box appears.
    3. Under Project Types, click Setup and Deployment Projects.
    4. Under Templates, click Web Setup Project.
    5. In the Name box, type WebSetup, and then click OK.
  2. Add a Web Application project to the solution:
    1. In Solution Explorer, click the solution.
    2. On the File menu, point to Add Project, and then click New Project. The Add New Project dialog box appears.
    3. Under Project Types, click Visual Basic Projects.
    4. Under Templates, click ASP.NET Web Application.
    5. Click OK. A Web Application project that is named WebApplication1 is added to the solution.
  3. On the File menu, click Save All.
  4. Remove a file that is part of the Web Application project:
    1. In Microsoft Windows Explorer, locate the folder that contains the WebApplication1 project that you created in step 2. By default, this project is located in the C:\Inetpub\Wwwroot\WebApplication1 folder.
    2. Delete the Global.asax file.
  5. In Solution Explorer, click the WebApplication1 project.
  6. On the View menu, click Refresh.

    Notice that a yellow triangle icon appears next to the Global.asax file. This icon indicates that the Global.asax file is missing.
  7. Add the project output to the solution:
    1. In Solution Explorer, click the WebSetup project.
    2. On the Project menu, point to Add, and then click Project Output. The Add Project Output Group dialog box appears.
    3. In the Project box, click the WebApplication1 project.
    4. In the box under the Project box, click Content Files.
    5. In the Configuration box, click (Active).
    6. Click OK. In Solution Explorer, Content Files from WebApplication1 (Active) appears under WebSetup.
  8. Build the solution:
    1. In Solution Explorer, click the solution.
    2. On the Build menu, click Build Solution.

Modification Type:MinorLast Reviewed:5/23/2005
Keywords:kbDeployment kbsetup kbprb KB835458 kbAudDeveloper