Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 2008 八达通清除锁定文件_Sql Server 2008_Powershell_Octopus Deploy - Fatal编程技术网

Sql server 2008 八达通清除锁定文件

Sql server 2008 八达通清除锁定文件,sql-server-2008,powershell,octopus-deploy,Sql Server 2008,Powershell,Octopus Deploy,我们正在尝试使用Octopus deploy配置ASP.NET应用程序的部署。 一切正常,但有时在试图覆盖文件时该步骤失败,表示文件已被其他进程锁定。 我们已经在部署开始之前停止了IIS,所以不确定我们可以在这里尝试什么。 有时错误出现在应用程序customlog foldertxt文件中,有时错误出现在某些dll的bin文件夹中 确切的错误是: *Unable to copy the package to the specified directory 'D:\Apps\XYZ_Stage'.

我们正在尝试使用Octopus deploy配置ASP.NET应用程序的部署。 一切正常,但有时在试图覆盖文件时该步骤失败,表示文件已被其他进程锁定。 我们已经在部署开始之前停止了IIS,所以不确定我们可以在这里尝试什么。 有时错误出现在应用程序customlog foldertxt文件中,有时错误出现在某些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.*

有什么建议吗?

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

以下是一些信息: