While using Deploy to IIS for a few web applications, we intermittently see an error like the below -
Copying package contents to ‘Install Dir’
System.IO.IOException: (32) The process cannot access the file because it is being used by another process: [\?\C:\inetpub\wwwroot***\PrecompiledApp.config]
The deployment isn’t successful until we manually stop the app pool and it kills the purpose.
We assume there’s a momentory app pool deploy during the deployments and dont see a need to stop app pools explicitly.
Your help or advice here would be appreciated.