Microsoft KB Archive/836162

= FIX: You receive a &quot;Could not copy built outputs to the Web&quot; error message when you build a project in Visual Studio .NET 2003 =

PSS ID Number: 836162

Article Last Modified on 12/3/2004

-

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), Professional Edition

-





SYMPTOMS
In Microsoft Visual Studio .NET 2003, when you first compile a Web project that was created with a &quot;deeper&quot; folder structure than in a typical project (past the root Web folder), you may receive the following error in the output window, and the project does not compile. Note The project was created in FileShare mode:

Could not copy built outputs to the Web. Unable to add folder '../ ' to Web project. Server error: '../ ' does not refer to a page or folder in this web. It may be a page or folder in a subweb, or it could be a badly formed URL.



CAUSE
This problem occurs when you create Web pages that are located more than one level below a virtual root entry in a local Microsoft Internet Information Services (IIS) Web site. When Visual Studio .NET 2003 builds the path, it concatenates the base path with the remaining URL. Unfortunately, the code does not convert the URL slash marks (&quot;/&quot;) to path slash marks. This behavior causes downstream problems for code that expects path slash marks.



RESOLUTION
This hotfix is available in the following languages:

Software update information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio.NET 2003 Service Pack 1 that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;%5BLN%5D;CNTACTMS

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
No prerequisites are required.

Restart requirement
Note You may have to restart the computer if any services or applications are running that use files that are listed in the &quot;File information&quot; section.

Software update replacement information
This software update does not replace any other software updates.

File information
The English version of this software update has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version      Size       File name 24-Feb-2004 17:29  7.10.4050.0    286,720  Cmddefui.dll 20-Feb-2004 11:10  7.10.4050.0  1,024,000  Csproj.dll 20-Feb-2004 10:53  7.10.4050.0    327,680  Dirprj.dll 24-Feb-2004 17:29  7.10.4050.0     98,304  Msenvmui.dll 20-Feb-2004 11:04  7.10.4050.0  1,515,520  Msvbprj.dll 19-Feb-2004 12:54  7.10.4050.0  1,036,288  Vjsproj.dll



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



WORKAROUND
To work around this issue without using this hotfix, do not create projects that are more than two levels deep past the web root in the folder. For example, if the C:\Inetpub\wwwroot\Level1 folder exists, you can successfully create a project at C:\Inentpub\wwwroot\Level1\Level2.



Steps to reproduce the behavior
 Create a sub-folder named Level1 in the under C:\Inetpub\wwwroot. In Visual Studio .NET 2003, Create a new solution that is named Level2 in the C:\Inetpub\wwwroot\Level1 folder. To do this, point to New on the File menu, and then click Blank Solution. Make sure that the Web access mode is set to FileShare. To do this, follow these steps using the Visual Studio IDE:  From the Tools menu, click Options, which will display the Options window.</li> From the Projects menu, click Level2 Properties, which will display the Level2 Properties Page Window.</li> From the left column under Common Properties, select Web Settings.</li> From the right column, set the Web Access Mode toFileShare, and then click OK to close the window..</li></ol> </li> Add a new project, that is named Level3 to the open solution. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> In Solution Explorer, right-click the Level2 solution, and Add a New Project.</li> In the Add New Project Window, type http:// /Level1/Level2/Level3 for the location field in the New Project Window. Note, Level3 will be the name of the project.</li></ol> </li> Build the solution multiple times. You will receive the error that is described in the &quot;Symptoms&quot; section of this article.</li></ol>

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbQFE kbNetFrame110preSP1fix kbDevStudio kbDev kbfix kbBug KB836162

Technology: kbAudDeveloper kbEIF kbVSNET2003EntArc kbVSNET2003EntDev kbVSNET2003Pro kbVSNET2003Search kbVSNETSearch kbVSsearch

-

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

© Microsoft Corporation. All rights reserved.