*******************************************************************************************************
Info: Adding sitemanifest (sitemanifest).
Info: Deleting file (xxxxxxxxxx\webapp-log.txt).
Warning: An error was encountered when processing operation 'Delete File' on 'we
bapp-log.txt'.
Retrying operation 'Delete' on object filePath (xxxxxxxxxxxxx\webapp-log.txt).
Attempt 1 of 5.
Warning: An error was encountered when processing operation 'Delete File' on 'we
bapp-log.txt'.
Retrying operation 'Delete' on object filePath (xxxxxxxxxxxxx\webapp-log.txt).
Attempt 2 of 5.
Warning: An error was encountered when processing operation 'Delete File' on 'we
bapp-log.txt'.
Retrying operation 'Delete' on object filePath (xxxxxxxxxxxxx\webapp-log.txt).
Attempt 3 of 5.
Warning: An error was encountered when processing operation 'Delete File' on 'we
bapp-log.txt'.
Retrying operation 'Delete' on object filePath (xxxxxxxxxxxxx\webapp-log.txt).
Attempt 4 of 5.
Warning: An error was encountered when processing operation 'Delete File' on 'we
bapp-log.txt'.
Retrying operation 'Delete' on object filePath (xxxxxxxxxxxxx\webapp-log.txt).
Attempt 5 of 5.
Error Code: ERROR_FILE_IN_USE
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: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE
.
Error: I/O error occurred.
Error count: 1.
*******************************************************************************************************
How to resolve
To resolve above issue it is required to set the rule to take web application offline while deploying with web deploy.
-enableRule:AppOffline
Should be set in the Web Deployment component in the RM server template.
![image image](http://lh3.googleusercontent.com/-bKAqBBc0dPE/Vdljvkgg6aI/AAAAAAAAFkI/gI5RIrm0QVc/image_thumb%25255B4%25255D.png?imgmax=800)
With this change web application is taken offline while the deployment happens.
![image image](http://lh3.googleusercontent.com/-XX_Mhc--KD0/Vdljx4Y1VtI/AAAAAAAAFkY/8fo7onMJeTA/image_thumb%25255B6%25255D.png?imgmax=800)
Change made to default page and checked in.
![image image](http://lh3.googleusercontent.com/-iUsPvUqZ7wE/Vdlj0JoPw2I/AAAAAAAAFko/0N4SQ4uYE9A/image_thumb%25255B8%25255D.png?imgmax=800)
Build and Release.
![image image](http://lh3.googleusercontent.com/-nZa_HKYJJzE/Vdlj2j6B_vI/AAAAAAAAFk4/5vLlrT7lt3k/image_thumb%25255B11%25255D.png?imgmax=800)
![image image](http://lh3.googleusercontent.com/-XQL6lvfkhdM/Vdlj4vaUaOI/AAAAAAAAFlI/5vWm1B_l7UE/image_thumb%25255B13%25255D.png?imgmax=800)
Site under construction (Taken offline)
![image image](http://lh3.googleusercontent.com/-z-seQo8W3F8/Vdlj6uSVUHI/AAAAAAAAFlY/R9bKxC7lAdM/image_thumb%25255B15%25255D.png?imgmax=800)
Deployment done.
![image image](http://lh3.googleusercontent.com/-4PDQG3-vH9k/Vdlj8Wlf8dI/AAAAAAAAFlo/5BD_ng52r5M/image_thumb%25255B19%25255D.png?imgmax=800)
![image image](http://lh3.googleusercontent.com/-GSPRBg6za5k/Vdlj-2cuZvI/AAAAAAAAFl4/GKaIjJK9Jsc/image_thumb%25255B17%25255D.png?imgmax=800)
No comments:
Post a Comment