• Determining MSDeploy vs. ZipDeploy
  • Determining what's causing the file to be locked
  • Preventing files from being locked
  • Safe deployment using Slot
  • Run from a package
  • Stopping the site (or slot) before deploying
  • For msdeploy, try enabling 'App Offline'
  • For msdeploy, there is another option to rename locked files
  • Check if files have the read-only attribute
  • Specify ReadOnly application