Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 533
Imri Barr Avatar asked Oct 22 '22 15:10

Imri Barr


1 Answers

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.

like image 157
Erwin Aarnoudse Avatar answered Oct 27 '22 00:10

Erwin Aarnoudse