Microsoft KB Archive/835458

= You may receive an &quot;unable to build project output 'content files from WebApplicationName'&quot; error message when you build a deployment package in Visual Studio .NET =

Article ID: 835458

Article Last Modified on 5/17/2007

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * 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 '

Note In this error message,  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.



Steps to reproduce the behavior
 Create a Web Setup project:  Start Visual Studio .NET. On the File menu, point to New, and then click Project. The New Project dialog box appears. Under Project Types, click Setup and Deployment Projects. Under Templates, click Web Setup Project.</li> In the Name box, type WebSetup, and then click OK.</li></ol> </li> Add a Web Application project to the solution: <ol style="list-style-type: lower-alpha;"> In Solution Explorer, click the solution.</li> On the File menu, point to Add Project, and then click New Project. The Add New Project dialog box appears.</li> Under Project Types, click Visual Basic Projects.</li> Under Templates, click ASP.NET Web Application.</li> Click OK. A Web Application project that is named WebApplication1 is added to the solution.</li></ol> </li> On the File menu, click Save All.</li> Remove a file that is part of the Web Application project: <ol style="list-style-type: lower-alpha;"> 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.</li> Delete the Global.asax file.</li></ol> </li> In Solution Explorer, click the WebApplication1 project.</li> 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.</li> Add the project output to the solution: <ol style="list-style-type: lower-alpha;"> In Solution Explorer, click the WebSetup project.</li> On the Project menu, point to Add, and then click Project Output. The Add Project Output Group dialog box appears.</li> <li>In the Project box, click the WebApplication1 project.</li> <li>In the box under the Project box, click Content Files.</li> <li>In the Configuration box, click (Active).</li> <li>Click OK. In Solution Explorer, Content Files from WebApplication1 (Active) appears under WebSetup.</li></ol> </li> <li>Build the solution: <ol style="list-style-type: lower-alpha;"> <li>In Solution Explorer, click the solution.</li> <li>On the Build menu, click Build Solution.</li></ol> </li></ol>

<div class="references_section">