First published on MSDN on May 22, 2016
Authored by Jeffrey Chilberto
As part of a VSTS Release, an Azure Deployment task was failing due to a locked library file preventing the task from modifying the file. The actual error message is shown below:
##[error]Web Deploy cannot modify the file 'NewRelic.Profiler.dll' on the destination because it is locked by an external process. In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net applications on your next publish attempt. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.