DFS 通过 FTP 锁定 ASP.Net DLL

发布于 2024-09-27 10:20:56 字数 797 浏览 6 评论 0原文

我经常遇到这样的情况:当我尝试通过 FTP 上传文件时,出现错误,指出 DLL 已锁定且当前无法覆盖。只有 DLL 才会发生这种情况,普通文件(aspx、ascx、css 等)可以被很好地覆盖。

我们的设置
我们有 2 个网络服务器,通过 DFS 保持同步,DFS 由单独的服务器管理。 它们都属于同一个域。 它们都在专用网络上的 1GB 以太网卡上进行内部传输。

我们的问题
我们在 VS2010 中进行开发并构建我们正在开发的站点,当它达到需要在服务器上检查的级别时,我们是否可以覆盖 BIN 文件夹中的 DLL 就变得不确定了。当我们从旧的、不可靠的同步工具迁移到超级 Windows 2008 DFS 工具时,我才开始遇到这个问题。它是一个很好的工具并且运行良好,但这是我认为导致此问题的唯一原因。

要真正覆盖该文件,我需要删除所有使用此基本级别代码的网站,然后释放 DLL 上的锁定,然后我可以上传它。

我今天是在绝望中来到这里的,我厌倦了不得不经常关闭网站以便上传 DLL。

据我了解,ASP.Net 将 DLL 缓存到临时文件夹中,所以天知道为什么锁保留在 BIN 文件夹中的 DLL 本身上。

奇怪的是,这种情况并不总是发生,可能会持续数周而不发生。或者就像最近一样,我每天都必须关闭 IIS 站点才能上传。

截至撰写本文时,即使我已经关闭了这些网站,我仍无法上传到 FTP。

谁能帮我解释一下这个问题,这样我就可以继续我的工作,而不是每十分钟就搞砸一次。 VS2010 如此不稳定,而且视觉源安全仅检查它想要的内容,这已经够糟糕了,这也不是问题!

I am having an ongoing situation where when I try to upload files via FTP that I get an error that the DLL is locked and currently cannot be overwritten. This is only DLLs that this is happeneing to and normal files (aspx, ascx, css etc) can be overwritten fine.

Our Setup
We have 2 webservers that are kept in sync via DFS which is managed from a separate server.
They all belong to the same domain.
They all do internal transfers on 1GB ethernet cards on a private network.

Our Problem
We develop in VS2010 and build the site we are working on, when it gets to a level where it needs to be checked on the server then its hit and miss whether we can overwrite the DLL's in the BIN folder. I only started experiencing this issue when we migrated from our old, unreliable sync tool to the super Windows 2008 DFS tool. Its a good tool and works well but this is the only thing I can think thats causing this issue.

To actually overwrite the file I need to take down all the sites that are using this base level code which then releases the lock on the DLL and I can upload it.

I come today in desperation, I am fed up and bored of having to take sites down every so often just so I can upload a DLL.

It is my understanding that ASP.Net caches the DLLs into a temporary folder, so god knows why the lock remains on the DLL itself in the BIN folder.

The weird thing is, this does not always happen, it can go for weeks and not do it. Or like recently, its around every day I have to take the IIS sites down so I can upload.

As of writing this, I cannot upload to FTP even though I have taken the sites down.

Could anyone please shed any light on this so I can actually just get on with my work rather than messing with this every ten mins. It's bad enough that VS2010 is so unstable and visual source safe only checks in what it wants without this being an issue as well!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫卆 2024-10-04 10:20:56

尝试使用 UnLocker 释放句柄。

Trying using UnLocker to free the handles.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文