Hi, I posted the same topic about a year ago about an error where on deployment on specifically Umbraco 10 websites (not sure if necessarily relevant) I more often than not recieve this error where it claims Azure.Core.dll is being used and therefore the website cannot be deployed. Last time I posted this I got the suggestion to add a step before the deployment step to restart/stop the application pool of the website which has worked for a while but at this point I need to stop the entire website to be able to deploy and this isn’t sustainable when people are using the website. Any suggestions where to go from here?
System.IO.IOException: (32) The process cannot access the file because it is being used by another process: [\\?\C:\inetpub\wwwroot\website\Azure.Core.dll]
August 7th 2023 15:29:25
Error
at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
August 7th 2023 15:29:25
Error
at Alphaleonis.Win32.Filesystem.File.CopyMoveCore(Boolean isFolder, KernelTransaction transaction, String sourceFileName, String destinationFileName, Boolean preserveDates, Nullable`1 copyOptions, Nullable`1 moveOptions, CopyMoveProgressRoutine progressHandler, Object userProgressData, CopyMoveResult copyMoveResult, PathFormat pathFormat)
August 7th 2023 15:29:25
Error
at Alphaleonis.Win32.Filesystem.File.Copy(String sourceFileName, String destinationFileName, Boolean overwrite)
August 7th 2023 15:29:25
Error
at Calamari.Common.Plumbing.FileSystem.CalamariPhysicalFileSystem.RetryTrackerFileAction(Action fileAction, String target, String action)
August 7th 2023 15:29:25
Error
at Calamari.Common.Plumbing.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
August 7th 2023 15:29:25
Error
at Calamari.Common.Plumbing.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory)
August 7th 2023 15:29:25
Error
at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment)
August 7th 2023 15:29:25
Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
August 7th 2023 15:29:25
Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
August 7th 2023 15:29:25
Error
Running rollback conventions...
August 7th 2023 15:29:25
Error
(32) The process cannot access the file because it is being used by another process: [\\?\C:\inetpub\wwwroot\website\Azure.Core.dll]
August 7th 2023 15:29:25
Error
System.IO.IOException
August 7th 2023 15:29:25
Error
at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
August 7th 2023 15:29:25
Error
at Alphaleonis.Win32.Filesystem.File.CopyMoveCore(Boolean isFolder, KernelTransaction transaction, String sourceFileName, String destinationFileName, Boolean preserveDates, Nullable`1 copyOptions, Nullable`1 moveOptions, CopyMoveProgressRoutine progressHandler, Object userProgressData, CopyMoveResult copyMoveResult, PathFormat pathFormat)
August 7th 2023 15:29:25
Error
at Alphaleonis.Win32.Filesystem.File.Copy(String sourceFileName, String destinationFileName, Boolean overwrite)
August 7th 2023 15:29:25
Error
at Calamari.Common.Plumbing.FileSystem.CalamariPhysicalFileSystem.RetryTrackerFileAction(Action fileAction, String target, String action)
August 7th 2023 15:29:25
Error
at Calamari.Common.Plumbing.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory, CancellationToken cancel)
August 7th 2023 15:29:25
Error
at Calamari.Common.Plumbing.FileSystem.CalamariPhysicalFileSystem.CopyDirectory(String sourceDirectory, String targetDirectory)
August 7th 2023 15:29:25
Error
at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment)
August 7th 2023 15:29:25
Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
August 7th 2023 15:29:25
Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
August 7th 2023 15:29:25
Error
at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments)
August 7th 2023 15:29:25
Error
at Calamari.Common.CalamariFlavourProgram.Run(String[] args)
August 7th 2023 15:29:25
Fatal
The remote script failed with exit code 100
August 7th 2023 15:29:25
Fatal
The action Release Deploy (IIS) on -server- failed