Publish website to IIS, server locks dll files

蹲街弑〆低调 提交于 2019-12-10 17:27:23

问题


I've been struggling with this problem for about a week. I'm trying to publish my MVC website to my IIS server using FTP. The only problem is that when I transfer the files, MVC always locks up some DLL files (System.Web.MVC etc.) and it releases them 10 minutes later.

This problem prevents my site to be consistently up and gives a very ugly error message.

When trying to delete the bin folder I get access denied, when trying to rename the bin folder I get access denied and when trying to delete the specific file I also get access denied.

Also, I can't run any programs that shut down the processes since it's not my server and I do not have access to the actual machine.

How can I publish my site smoothly without having these problems?


回答1:


I have the same problem. For now I recycle the application pool before Publishing and that will release all locks on dll files.

I hope to find a better solution soon.



来源:https://stackoverflow.com/questions/15276978/publish-website-to-iis-server-locks-dll-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!