将网站发布到IIS,服务器锁定dll文件 [英] Publish website to IIS, server locks dll files

查看:197
本文介绍了将网站发布到IIS,服务器锁定dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为这个问题苦苦挣扎了大约一个星期.我正在尝试使用FTP将MVC网站发布到IIS服务器.唯一的问题是,当我传输文件时,MVC总是锁定一些DLL文件(System.Web.MVC等),并在10分钟后释放它们.

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.

当尝试删除bin文件夹时,我的访问被拒绝,当尝试重命名bin文件夹时,我的访问被拒绝,并且当尝试删除特定文件时,我也被拒绝了访问.

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?

推荐答案

我有同样的问题.现在,我在发布之前回收应用程序池,这将释放dll文件上的所有锁.

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.

这篇关于将网站发布到IIS,服务器锁定dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆