0

I have an MVC application and I have been deploying it to Azure. But, the last time i did, an error occurred:

  Web Deploy cannot modify the file 'Microsoft.CodeAnalysis.CSharp.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

I restarted the app, and the file is still locked. I looked at this ( http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE) but the language is too cryptic. Has anyone else encountered this problem or can decipher what Microsoft said about syncing in the article? Thanks

Edit I found this (VSTS - Take app offline before deployment) but do not know what values to give variables like $packOutput,$msdeployurl $website etc

Md Farid Uddin Kiron
  • 16,817
  • 3
  • 17
  • 43
BoundForGlory
  • 4,114
  • 15
  • 54
  • 81
  • Related to http://stackoverflow.com/questions/25813629/azurew-website-continious-deployment-web-deploy-cannot-modify-the-file-xxx-o Could you try the answer provided ? – Paul May 19 '16 at 21:01
  • That post said to restart the app. I did that. I'll keep looking. Thanks – BoundForGlory May 19 '16 at 21:30
  • Is that assembly actually required for your MVC site? If not, try excluding it from your deployment. – Simon W May 20 '16 at 03:41

0 Answers0