简体   繁体   中英

Publish website to IIS, server locks dll files

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM