I have a WCF service hosted on IIS7. I am using source control tool (IBM RTC) to manage code base and continuous deployment on our testing server. but my deployment is failing because IIS has acquired lock on log file.
Error message:
The command "ren "<some service path on network share>" ""<to path on network share>""" exited with code 1.
When I debug the issue more, I found it is failing because of error "the file is open in IIS Worker Process".
During the deployment, I am renaming old deployment folder with "_old" keyword and creating a new folder with new binaries.
How can I force IIS to release lock on log file.