Search code examples
msbuildvisual-studio-2008-sp1tfsbuildaspnet-compiler

Team Build error : ASPNETCOMPILER : error ASPRUNTIME: '/localhost:8080' is not a valid virtual path. Any suggestion?


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.


Solution

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