TFS Build release IIS Deployment Virtual path should be begin with a / 错误
TFS Build release IIS Deployment Virtual path should begin with a / Error
虚拟路径应以 / 开头 我尝试构建 ASP.NET 应用程序时出现错误。
When I try to deploy following error massage come
2017-12-07T22:14:15.6196402Z ##[section]开始:发布
2017-12-07T22:14:15.6217147Z 当前代理版本:2.126.0
2017-12-07T22:14:16.7467026Z ##[部分]开始:初始化作业
2017-12-07T22:14:16.7497604Z 准备发布目录。
2017-12-07T22:14:16.7507232Z ReleaseId=2,TeamProjectId=49dcec02-39e8-4590-82a2-ab110a875d7e,ReleaseDefinitionName=新版本定义
2017-12-07T22:14:16.7547852Z 发布文件夹:C:\vstsagent\A4_work\r1\a
2017-12-07T22:14:16.7709838Z 可用的环境变量如下。请注意,通过将“_”替换为“.”,可以在任务(在 ReleaseDefinition 中)中引用这些环境变量。例如AGENT_NAME 环境变量可以在 ReleaseDefinition 中使用 Agent.Name 引用:
2017-12-07T22:14:17.1451135Z 下载所有必需的任务。
2017-12-07T22:14:17.1837731Z ##[部分]完成:初始化作业
2017-12-07T22:14:17.2162154Z ##[部分]开始:下载工件
2017-12-07T22:14:17.2272283Z 创建工件目录:C:\vstsagent\A4_work\r1\a
2017-12-07T22:14:17.2611603Z 创建的工件目录:C:\vstsagent\A4_work\r1\a
2017-12-07T22:14:17.2611793Z 下载神器
2017-12-07T22:14:17.2630213Z 开始工件下载...
2017-12-07T22:14:17.2656016Z 正在下载构建类型的链接工件 CIDemo-ASP.NET (PREVIEW)-CI...
2017-12-07T22:14:17.2692891Z 确保工件文件夹 C:\vstsagent\A4_work\r1\a\CIDemo-ASP.NET (PREVIEW)-CI 存在且干净。
2017-12-07T22:14:17.2763873Z 准备从构建中获取可用工件列表
2017-12-07T22:14:17.7608040Z 准备下载神器:掉落
2017-12-07T22:14:17.7677814Z 工件类型:ServerDrop
2017-12-07T22:14:17.7678100Z 从文件容器下载工件:#/1049368/drop to target: C:\vstsagent\A4_work\r1\a\CIDemo-ASP.NET (PREVIEW)-CI\drop
2017-12-07T22:14:17.7681631Z 并行下载限制:4
2017-12-07T22:14:17.7681855Z 下载缓冲区大小:8192
2017-12-07T22:14:18.0849933Z 在文件容器中缓存项目...
2017-12-07T22:14:18.2018057Z 缓存完成。 (116 毫秒)
2017-12-07T22:14:18.2223239Z 下载文件
2017-12-07T22:14:28.2769926Z 下载完成。
2017-12-07T22:14:28.2777174Z 126 个放置文件:126 个已下载,0 个为空
2017-12-07T22:14:28.2778130Z 24 MB 下载时间为 2435 KB/sec。下载时间:00:00:10.0528421。
2017-12-07T22:14:28.2778657Z 下载链接神器 CIDemo-ASP.NET (PREVIEW)-CI
2017-12-07T22:14:28.2778827Z 成品神器下载
2017-12-07T22:14:28.2818295Z ##[部分]完成:下载工件
2017-12-07T22:14:28.2842190Z ##[section]开始:IIS Web App管理
2017-12-07T22:14:28.3045728Z ======================================== ======================================
2017-12-07T22:14:28.3045901Z 任务:IIS Web 应用程序管理
2017-12-07T22:14:28.3046054Z 描述:创建或更新网站、Web 应用程序、虚拟目录和应用程序池
2017-12-07T22:14:28.3046224Z 版本:0.5.4
2017-12-07T22:14:28.3046352Z 作者:微软公司
2017-12-07T22:14:28.3046498Z 帮助:[更多信息]
2017-12-07T22:14:28.3046664Z ====================================== ======================================
2017-12-07T22:14:30.0691429Z ##[错误]虚拟路径应以 /
开头
2017-12-07T22:14:30.0892513Z ##[部分]完成:IIS Web App管理
2017-12-07T22:14:30.0966325Z ##[部分]完成:发布
请检查步骤 IIS Web App Manage 中的设置。似乎您没有正确设置 虚拟路径。
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
.
虚拟路径应以 / 开头 我尝试构建 ASP.NET 应用程序时出现错误。
When I try to deploy following error massage come
2017-12-07T22:14:15.6196402Z ##[section]开始:发布
2017-12-07T22:14:15.6217147Z 当前代理版本:2.126.0
2017-12-07T22:14:16.7467026Z ##[部分]开始:初始化作业
2017-12-07T22:14:16.7497604Z 准备发布目录。
2017-12-07T22:14:16.7507232Z ReleaseId=2,TeamProjectId=49dcec02-39e8-4590-82a2-ab110a875d7e,ReleaseDefinitionName=新版本定义
2017-12-07T22:14:16.7547852Z 发布文件夹:C:\vstsagent\A4_work\r1\a
2017-12-07T22:14:16.7709838Z 可用的环境变量如下。请注意,通过将“_”替换为“.”,可以在任务(在 ReleaseDefinition 中)中引用这些环境变量。例如AGENT_NAME 环境变量可以在 ReleaseDefinition 中使用 Agent.Name 引用:
2017-12-07T22:14:17.1451135Z 下载所有必需的任务。
2017-12-07T22:14:17.1837731Z ##[部分]完成:初始化作业
2017-12-07T22:14:17.2162154Z ##[部分]开始:下载工件
2017-12-07T22:14:17.2272283Z 创建工件目录:C:\vstsagent\A4_work\r1\a
2017-12-07T22:14:17.2611603Z 创建的工件目录:C:\vstsagent\A4_work\r1\a
2017-12-07T22:14:17.2611793Z 下载神器
2017-12-07T22:14:17.2630213Z 开始工件下载...
2017-12-07T22:14:17.2656016Z 正在下载构建类型的链接工件 CIDemo-ASP.NET (PREVIEW)-CI...
2017-12-07T22:14:17.2692891Z 确保工件文件夹 C:\vstsagent\A4_work\r1\a\CIDemo-ASP.NET (PREVIEW)-CI 存在且干净。
2017-12-07T22:14:17.2763873Z 准备从构建中获取可用工件列表
2017-12-07T22:14:17.7608040Z 准备下载神器:掉落
2017-12-07T22:14:17.7677814Z 工件类型:ServerDrop
2017-12-07T22:14:17.7678100Z 从文件容器下载工件:#/1049368/drop to target: C:\vstsagent\A4_work\r1\a\CIDemo-ASP.NET (PREVIEW)-CI\drop
2017-12-07T22:14:17.7681631Z 并行下载限制:4
2017-12-07T22:14:17.7681855Z 下载缓冲区大小:8192
2017-12-07T22:14:18.0849933Z 在文件容器中缓存项目...
2017-12-07T22:14:18.2018057Z 缓存完成。 (116 毫秒)
2017-12-07T22:14:18.2223239Z 下载文件
2017-12-07T22:14:28.2769926Z 下载完成。
2017-12-07T22:14:28.2777174Z 126 个放置文件:126 个已下载,0 个为空
2017-12-07T22:14:28.2778130Z 24 MB 下载时间为 2435 KB/sec。下载时间:00:00:10.0528421。
2017-12-07T22:14:28.2778657Z 下载链接神器 CIDemo-ASP.NET (PREVIEW)-CI
2017-12-07T22:14:28.2778827Z 成品神器下载
2017-12-07T22:14:28.2818295Z ##[部分]完成:下载工件
2017-12-07T22:14:28.2842190Z ##[section]开始:IIS Web App管理
2017-12-07T22:14:28.3045728Z ======================================== ======================================
2017-12-07T22:14:28.3045901Z 任务:IIS Web 应用程序管理
2017-12-07T22:14:28.3046054Z 描述:创建或更新网站、Web 应用程序、虚拟目录和应用程序池
2017-12-07T22:14:28.3046224Z 版本:0.5.4
2017-12-07T22:14:28.3046352Z 作者:微软公司
2017-12-07T22:14:28.3046498Z 帮助:[更多信息]
2017-12-07T22:14:28.3046664Z ====================================== ======================================
2017-12-07T22:14:30.0691429Z ##[错误]虚拟路径应以 /
开头2017-12-07T22:14:30.0892513Z ##[部分]完成:IIS Web App管理 2017-12-07T22:14:30.0966325Z ##[部分]完成:发布
请检查步骤 IIS Web App Manage 中的设置。似乎您没有正确设置 虚拟路径。
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
.