[英]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. 我有一个Web服务,并且我注意到执行该Web服务后wwwroot文件夹中的某些dll保持记录。
After restart of pc, the problem is solved. PC重启后,问题解决。
Can i have something in my code that releases the dlls? 我可以在代码中放一些东西来释放dll吗?
Try to either recycle the AppPool which your webservices runs under, or use iisreset. 尝试回收运行您的Web服务的AppPool,或者尝试使用iisreset。
iisreset /stop
will stop IIS and release the dll's. iisreset /stop
将停止IIS并释放dll。 iisreset /start
will start IIS back up again. iisreset /start
将再次启动IIS备份。
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. 如果您回收应用程序池,则DLL的锁将被释放,直到有人再次点击您的Web服务并获取新的锁为止。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.