TFS shows a error when building app

0 votes

TFS shows the following a / Error when I try to build an ASP.NET app.

2017-12-07T22:14:15.6196402Z ##[section]Starting: Release 2017-12-07T22:14:15.6217147Z Current agent version: 2.126.0 2017-12-07T22:14:16.7467026Z ##[section]Starting: Initialize Job 2017-12-07T22:14:16.7497604Z Prepare release directory. 2017-12-07T22:14:16.7507232Z ReleaseId=2, TeamProjectId=49dcec02-39e8-4590-82a2-ab110a875d7e, ReleaseDefinitionName=New Release Definition 2017-12-07T22:14:16.7547852Z Release folder: C:\vstsagent\A4_work\r1\a 2017-12-07T22:14:16.7709838Z Environment variables available are below. Note that these environment variables can be referred to in the task (in the ReleaseDefinition) by replacing "_" with "." e.g. AGENT_NAME environment variable can be referenced using Agent.Name in the ReleaseDefinition:
2017-12-07T22:14:17.1451135Z Download all required tasks. 2017-12-07T22:14:17.1837731Z ##[section]Finishing: Initialize Job 2017-12-07T22:14:17.2162154Z ##[section]Starting: Download Artifacts 2017-12-07T22:14:17.2272283Z Creating artifacts directory: C:\vstsagent\A4_work\r1\a 2017-12-07T22:14:17.2611603Z Created artifacts directory: C:\vstsagent\A4_work\r1\a 2017-12-07T22:14:17.2611793Z Downloading artifact 2017-12-07T22:14:17.2630213Z Starting artifacts download... 2017-12-07T22:14:17.2656016Z Downloading linked artifact CIDemo-ASP.NET (PREVIEW)-CI of type Build... 2017-12-07T22:14:17.2692891Z Ensuring artifact folder C:\vstsagent\A4_work\r1\a\CIDemo-ASP.NET (PREVIEW)-CI exists and is clean. 2017-12-07T22:14:17.2763873Z Preparing to get the list of available artifacts from build 2017-12-07T22:14:17.7608040Z Preparing to download artifact: drop 2017-12-07T22:14:17.7677814Z Artifact Type: ServerDrop 2017-12-07T22:14:17.7678100Z Downloading artifact from file container: #/1049368/drop to target: C:\vstsagent\A4_work\r1\a\CIDemo-ASP.NET (PREVIEW)-CI\drop 2017-12-07T22:14:17.7681631Z Parallel download limit: 4 2017-12-07T22:14:17.7681855Z Download buffer size: 8192 2017-12-07T22:14:18.0849933Z Caching items under drop in the file container... 2017-12-07T22:14:18.2018057Z Caching complete. (116 ms) 2017-12-07T22:14:18.2223239Z Downloading file 2017-12-07T22:14:28.2769926Z Download complete. 2017-12-07T22:14:28.2777174Z 126 placed file(s): 126 downloaded, 0 empty 2017-12-07T22:14:28.2778130Z 24 MB downloaded at 2435 KB/sec. Download time: 00:00:10.0528421. 2017-12-07T22:14:28.2778657Z Downloaded linked artifact CIDemo-ASP.NET (PREVIEW)-CI 2017-12-07T22:14:28.2778827Z Finished artifacts download 2017-12-07T22:14:28.2818295Z ##[section]Finishing: Download Artifacts 2017-12-07T22:14:28.2842190Z ##[section]Starting: IIS Web App Manage 2017-12-07T22:14:28.3045728Z ============================================================================== 2017-12-07T22:14:28.3045901Z Task : IIS Web App Manage 2017-12-07T22:14:28.3046054Z Description : Create or update a Website, Web App, Virtual Directories, and Application Pool 2017-12-07T22:14:28.3046224Z Version : 0.5.4 2017-12-07T22:14:28.3046352Z Author : Microsoft Corporation 2017-12-07T22:14:28.3046498Z Help : [More Information] 2017-12-07T22:14:28.3046664Z ==============================================================================

2017-12-07T22:14:30.0691429Z ##[error]Virtual path should begin with a /

2017-12-07T22:14:30.0892513Z ##[section]Finishing: IIS Web App Manage 2017-12-07T22:14:30.0966325Z ##[section]Finishing: Release

Apr 29, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
658 views

1 answer to this question.

0 votes

Seems like you haven't set the virtual path correctly. Check your IIS web app manage settings.

Virtual path:

Parameters for IIS Application configuration:

Enter the virtual path in IIS relative to the parent website. The parent website must already exist. Example: to create an application named Site/Application enter /Application.

Parameters for IIS Virtual Directory configuration

Enter the virtual path in IIS relative to the parent website. The parent website and application must already exist. Example: to create a virtual directory named Site/Application/VDir enter/Application/Vdir.

For more information check Deploy: IIS Web App Manage

answered Apr 29, 2018 by DareDev
• 6,890 points

Related Questions In DevOps & Agile

0 votes
1 answer

Can I run a program on release failure in TFS?

You can try and do the following ...READ MORE

answered Apr 26, 2018 in DevOps & Agile by ajs3033
• 7,300 points
815 views
0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 30, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
1,220 views
0 votes
1 answer
0 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,931 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,040 views
0 votes
1 answer

How to change state of TFS 2015 if build has warnings?

To access the TFS Build Definition can ...READ MORE

answered May 4, 2018 in DevOps & Agile by ajs3033
• 7,300 points
743 views
0 votes
1 answer

Building a particular tenant in hybris

There isn't an in-built option to only ...READ MORE

answered Aug 1, 2018 in DevOps & Agile by DareDev
• 6,890 points
824 views
+3 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP