views:

21

answers:

3

Hi all,

I am trying to build Web Application solution built using VS 2008 and facing the following error.

ASPNETCOMPILER : error ASPRUNTIME: '/localhost:8080' is not a valid virtual path.

I have absolutely no clue how and why is is occurring? Is it related with the deploy project settings or web site properties? The Solution is checked into the source control.

The same works for a different branch of the same solution and the build occurs without any errors.

Please help. Thanks

+1  A: 

In the project properties for the web site, under the MSBuild options, change the Output Folder path, removing the port number.

Leszek Wachowicz
A: 

I kind of have a similar problem, but I can not find where to set the Output Folder. Do you have a 'Output Folder' field in any of the Configuration Steps? I searched in all and no such field.

ASPNETCOMPILER error ASPRUNTIME: The precompilation target directory (C:\TeamCity\buildAgent\work\ddfeb81a7d22711f\MyProject\PrecompiledWeb\MyProjectSite) cannot be in the same tree as the source application directory (C:\TeamCity\buildAgent\work\ddfeb81a7d22711f\MyProject).

Thanks

Gabi Diaconescu
A: 

In your web project solution right click the project (which is like http://localhost:xxx/_1/) in the solution and click Property Pages. A new Dialog will open saying " http://youwebsiteName:xxxx/_1/ Property Pages" as Title. In this dialog click "MSBuild Options".

On clicking this option the contents of the dialog will change and certain properties having checkboxes and single text field will be displayed. The first text field will be saying "Output folder" and inside the text field there will be a path written that says something like "d:\data\allProjects\WebProject\localhost:8080".

Obviously it is not valid path as you cannot create a folder having ":" in the fodler/path name. So remove this colon and port number and save it. This will solve the problem regarding the valid virtual path.

Steve Johnson