0

我们正在尝试使用 Octopus deploy 配置 ASP.NET 应用程序的部署。一切正常,但有时该步骤会在尝试覆盖文件时失败,说明该文件已被其他进程锁定。我们已经在部署开始之前停止了 IIS,所以不确定我们可以在这里尝试什么。有时错误出现在应用程序 customlog 文件夹(txt 文件)中,有时错误出现在某些 dll 等的 bin 文件夹中。

确切的错误是:

*Unable to copy the package to the specified directory 'D:\Apps\XYZ_Stage'. One or more files in the directory may be locked by another process. You could use a PreDeploy.ps1 script to stop any processes that may be locking the file. Error details follow.
Access to the path 'D:\Apps\XYZ_Stage\bin\XYZ.Business.dll' is denied.
System.UnauthorizedAccessException: Access to the path 'D:\Apps\XYZ_Stage\bin\ACA.Business.dll' is denied.*

有什么建议么?

4

1 回答 1

0

如果您使用 Octopus 2.0 或更高版本,您可以利用“IIS 网站和应用程序池”部署选项,这会导致 Octopus Deploy 处理部署到 IIS 的所有复杂性,而无需执行手动步骤。

这里有一些信息: http ://docs.octopusdeploy.com/display/OD/IIS+Websites+and+Application+Pools

于 2014-08-21T22:44:21.133 回答