w3wp.exe 在 Web 服务中处理后保持文件锁定

发布于 2024-09-05 16:38:30 字数 114 浏览 0 评论 0原文

我有一个 Web 服务,我注意到 wwwroot 文件夹中的一些 dll 在 Web 服务执行后会保留记录。

重启电脑后,问题解决。

我的代码中可以有一些可以释放 dll 的东西吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

红颜悴 2024-09-12 16:38:30

尝试回收运行 Web 服务的 AppPool,或使用 iisreset。

iisreset /stop 将停止 IIS 并释放 dll。 iisreset /start 将再次启动 IIS。

如果您回收应用程序池,那么 dll 的锁将被释放,直到有人再次访问您的 Web 服务并获取新的锁。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文