Reputation: 131
I Deployed a .net core 2.1 application on server with iis as a self contained application.
When i try delete all the files for deploy another version of this application, all files are deleted, except wwwroot folder and .exe file.
Both are delete but back to appear in the folder again.
I' ve tryied stop the application and pool application on iis but it not work, and this files appear over and over again.
How can i solve this problem?
Upvotes: 0
Views: 977
Reputation: 3504
Process monitor is a tool to monitor real-time file system.
https://learn.microsoft.com/en-us/sysinternals/downloads/procmon
It will tell you who is read/write these files.
I believe it will help you figure out who is locking this. Then you only have to stop related process and try todelete these files again.
Upvotes: 1
Reputation: 65
You can try the following.
look for the <.exe> file you are trying to delete in the task manager. if its there stop it and then try deleting your files.
Look for dotnet.exe in task manager, if it is there, stop it, and then try to delete
For me it was dotnet.exe that was causing the issue, and I had it resolved by stopping it
Upvotes: 1