3

I am using octopus deployment with teamcity. In many cases deployment fails because "The process cannot access the file or dll because it is being used by another process. How to write a script to fix this problem. Please guide.

Cœur
  • 34,719
  • 24
  • 185
  • 251
sam
  • 4,506
  • 11
  • 60
  • 110
  • possible duplicate of [Powershell script to check application that's locking a file?](http://stackoverflow.com/questions/958123/powershell-script-to-check-application-thats-locking-a-file) – CB. May 24 '13 at 10:27
  • What have you attempted so far? – alroc May 24 '13 at 11:09

1 Answers1

0

I'm reading into your question a little here, but it sounds to me that you're trying to deploy a website and it's failing, because the IIS worker process is using the files - what you want to do is recycle the application pool of the website before you deploy, or, if it's a high traffic website, stop the website, do the deploy, then start the website.

Tom Hall
  • 4,198
  • 2
  • 22
  • 23