Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

web.config locked by w3wp.exe

I've got a weird problem. It looks like if my IIS6 locked an application's web.config. If I try to edit it, Windows complains that the web.config is used by another process.

Using Process Explorer I can see that the file is owned by w3wp.exe. Removing the virtual directory and stopping the website wasn't useful at all.

Any idea (I cannot stop the whole server since a lot of sites are hosted in it)?

Thanks in advance

like image 847
pomarc Avatar asked Dec 18 '22 08:12

pomarc


2 Answers

I would try stopping the application pool for the website that is accessing the web.config.

like image 132
notandy Avatar answered Dec 26 '22 07:12

notandy


I had this problem, stopping the application pool didn't help. I then tried launching my text edited as administrator, and then that allowed me to save the file. Unfortunately I don't know if I needed to stop the application pool or not in the end...

like image 43
Simon Green Avatar answered Dec 26 '22 07:12

Simon Green