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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With