Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网络服务,我注意到 wwwroot 文件夹中的一些 dll 在执行网络服务后会被记录下来。
重启电脑后,问题解决。
我的代码中可以有一些可以释放 dll 的东西吗?
尝试回收运行 Web 服务的 AppPool,或使用 iisreset。
iisreset /stop将停止 IIS 并释放 dll。iisreset /start将再次启动 IIS 备份。
iisreset /stop
iisreset /start
如果你回收应用程序池,那么 dll 的锁将被释放,直到有人再次点击你的 web 服务,并获得一个新的锁。