Sunday 21 June 2015

Resolve ERROR_FILE_IN_USE When Deploying Azure Web Site with RM Server

ERROR_FILE_IN_USE error might occur if the Azure website is online while the deployment is taking place using the RM server Component. The full error message in log is below.
More Information: Web Deploy cannot modify the file 'webapp-log.txt' on the dest
ination because it is locked by an external process.  In order to allow the publ
ish operation to succeed, you may need to either restart your application to rel
ease the lock, or use the AppOffline rule handler for .Net applications on your
next publish attempt.
  Learn more at:
Error: I/O error occurred.
Error count: 1.
As the link in the error suggests solution is making the app offline while the deployment happens. Set the –enableRule:AppOffline in RM tool will allow the RM tool based deployments to azure to avoid above error.

No comments:

Popular Posts