Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

w3wp.exe keeping files locked after processing in webservice

I have a webservice and I noted that some dlls in the wwwroot folder are kept logged after the webservice is executed.

After restart of pc, the problem is solved.

Can i have something in my code that releases the dlls?

like image 268
mouthpiec Avatar asked Sep 15 '25 05:09

mouthpiec


1 Answers

Try to either recycle the AppPool which your webservices runs under, or use iisreset.

iisreset /stop will stop IIS and release the dll's. iisreset /start will start IIS back up again.

If you recycle the Application Pool, then the lock of dll's will be released until someone hits your webservice again, and aquires a new lock.

like image 72
Mikael Svenson Avatar answered Sep 17 '25 06:09

Mikael Svenson