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.*
助言がありますか?