IIS deployment error file is locked by an external process

299 Views Asked by At

I am facing file_is_use error while deploying .netcore api from azure pipeline to on-prem IIS server by using the tasks following task in CD pipeline

enter image description here

Steps I have tried but still error persists :

  1. Stop the application , deploy and than start

enter image description here

  1. Enable App offline in Web Deploy task

enter image description here

But still facing the File_in_use issue

enter image description here

1

There are 1 best solutions below

0
Jason Pan On BEST ANSWER

When IIS encounters a file locked error when publishing an application, we recommend using the Windows built-in Resource Monitor to check the specific situation of the occupied files.

Any files are locked issue can be investigated through this tool.

enter image description here