开发者

w3wp.exe keeping files locked after processing in webservice

开发者 https://www.devze.com 2023-01-03 03:11 出处:网络
I have a webservice and I noted that some dlls in the wwwroot folder are kept logged after the webservice is executed.

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 rele开发者_运维技巧ases the dlls?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号