IIS 使用时,VSTS 代理无法覆盖或删除 DLL
VSTS Agent cannot overwrite nor remove the DLL when used by IIS
调用 URL 后,Azure devOPS 的 VSTS 代理无法删除或覆盖文件。但是,当 IIS 工作进程被终止并重新部署 Release 时,它工作正常。
我启用了覆盖和清除选项。但是还是无法部署。
2018-11-17T13:05:23.2176452Z ##[section]Starting: Copy Files to: D:\IIS Hosting\CICD
2018-11-17T13:05:23.2179160Z ==============================================================================
2018-11-17T13:05:23.2179236Z Task : Copy Files
2018-11-17T13:05:23.2179314Z Description : Copy files from source folder to target folder using match patterns (The match patterns will only match file paths, not folder paths)
2018-11-17T13:05:23.2179373Z Version : 2.117.2
2018-11-17T13:05:23.2179438Z Author : Microsoft Corporation
2018-11-17T13:05:23.2179495Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=708389)
2018-11-17T13:05:23.2179554Z ==============================================================================
2018-11-17T13:05:23.4602460Z found 7 files
2018-11-17T13:05:23.4602904Z Cleaning target folder: D:\IIS Hosting\CICD
2018-11-17T13:05:23.4650798Z ##[error]Unhandled: Failed rmRF: EPERM: operation not permitted, unlink 'D:\IIS Hosting\CICD\AZSync.Web.dll'
2018-11-17T13:05:23.4659907Z ##[section]Finishing: Copy Files to: D:\IIS Hosting\CICD
报错 -
解决方案是有一个任务将 app_offline.htm
复制到 IIS 托管目录,这将停止来自 运行 的 dotnet 核心。复制/覆盖所有文件,然后使用删除文件任务删除app_offline.htm
。
调用 URL 后,Azure devOPS 的 VSTS 代理无法删除或覆盖文件。但是,当 IIS 工作进程被终止并重新部署 Release 时,它工作正常。
我启用了覆盖和清除选项。但是还是无法部署。
2018-11-17T13:05:23.2176452Z ##[section]Starting: Copy Files to: D:\IIS Hosting\CICD
2018-11-17T13:05:23.2179160Z ==============================================================================
2018-11-17T13:05:23.2179236Z Task : Copy Files
2018-11-17T13:05:23.2179314Z Description : Copy files from source folder to target folder using match patterns (The match patterns will only match file paths, not folder paths)
2018-11-17T13:05:23.2179373Z Version : 2.117.2
2018-11-17T13:05:23.2179438Z Author : Microsoft Corporation
2018-11-17T13:05:23.2179495Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=708389)
2018-11-17T13:05:23.2179554Z ==============================================================================
2018-11-17T13:05:23.4602460Z found 7 files
2018-11-17T13:05:23.4602904Z Cleaning target folder: D:\IIS Hosting\CICD
2018-11-17T13:05:23.4650798Z ##[error]Unhandled: Failed rmRF: EPERM: operation not permitted, unlink 'D:\IIS Hosting\CICD\AZSync.Web.dll'
2018-11-17T13:05:23.4659907Z ##[section]Finishing: Copy Files to: D:\IIS Hosting\CICD
报错 -
解决方案是有一个任务将 app_offline.htm
复制到 IIS 托管目录,这将停止来自 运行 的 dotnet 核心。复制/覆盖所有文件,然后使用删除文件任务删除app_offline.htm
。