Getting the following error message when trying to deploy an IIS site to a custom location. Looks to be something accessing the files. The process works after a reboot of the server but then when after firing the site up the subsequent purges fail.
If it helps, it’s a .net core app. I’ve tried to put in a stop IIS site before it to see if that helps but the same issue! The folder is also a DFS replicated folder.
Any ideas as really struggling with this intermittent error!
October 25th 2018 20:14:58Info
Purging the directory ‘D:\StageApplications\Wallet\alphaapiod’
October 25th 2018 20:16:02Error
System.UnauthorizedAccessException: (5) Access is denied: [\?\D:\StageApplications\Wallet\alphaapiod\api-ms-win-crt-convert-l1-1-0.dll]
October 25th 2018 20:16:02Error
at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
October 25th 2018 20:16:02Error
at Alphaleonis.Win32.Filesystem.File.DeleteFileCore(KernelTransaction transaction, String path, Boolean ignoreReadOnly, PathFormat pathFormat)
October 25th 2018 20:16:02Error
at Calamari.Integration.FileSystem.LongPathsFile.Delete(String path)
October 25th 2018 20:16:02Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.DeleteFile(String path, FailureOptions options)
October 25th 2018 20:16:02Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, Predicate1 exclude, FailureOptions options, CancellationToken cancel, Boolean includeTarget) October 25th 2018 20:16:02Error at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, FailureOptions options, String[] globs) October 25th 2018 20:16:02Error at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment) October 25th 2018 20:16:02Error at Calamari.Deployment.ConventionProcessor.RunInstallConventions() October 25th 2018 20:16:02Error at Calamari.Deployment.ConventionProcessor.RunConventions() October 25th 2018 20:16:02Error Running rollback conventions... October 25th 2018 20:16:02Error (5) Access is denied: [\\?\D:\StageApplications\Wallet\alphaapiod\api-ms-win-crt-convert-l1-1-0.dll] October 25th 2018 20:16:02Error System.UnauthorizedAccessException October 25th 2018 20:16:02Error at Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath) October 25th 2018 20:16:02Error at Alphaleonis.Win32.Filesystem.File.DeleteFileCore(KernelTransaction transaction, String path, Boolean ignoreReadOnly, PathFormat pathFormat) October 25th 2018 20:16:02Error at Calamari.Integration.FileSystem.LongPathsFile.Delete(String path) October 25th 2018 20:16:02Error at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.DeleteFile(String path, FailureOptions options) October 25th 2018 20:16:02Error at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, Predicate
1 exclude, FailureOptions options, CancellationToken cancel, Boolean includeTarget)
October 25th 2018 20:16:02Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.PurgeDirectory(String targetDirectory, FailureOptions options, String[] globs)
October 25th 2018 20:16:02Error
at Calamari.Deployment.Conventions.CopyPackageToCustomInstallationDirectoryConvention.Install(RunningDeployment deployment)
October 25th 2018 20:16:02Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
October 25th 2018 20:16:02Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
October 25th 2018 20:16:02Error
at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments)
October 25th 2018 20:16:02Error
at Calamari.Program.Execute(String[] args)
October 25th 2018 20:16:02Fatal
The remote script failed with exit code 100