Tahami Rizwan
Tahami Rizwan

Reputation: 369

IIS deployment error file is locked by an external process

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

Upvotes: 1

Views: 547

Answers (1)

Jason Pan
Jason Pan

Reputation: 22092

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

Upvotes: 1

Related Questions