Octopus - Deploy step - Deployment fails intermittently because of precompileapp.config in use

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.

Hi Satish,

Sorry to hear you’re having problems. It sounds like one of the applications in the app pool is holding onto the configuration file.

I’d check to see what applications use PrecompiledApp.config and make sure they aren’t holding onto the file reference.

Also it is possible to stop and start the IIS app pool as part of the deployment, by using the community steps from the steps library.

Hope that helps.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.