Windows 更新后需要将 .Net 程序集移至程序文件

发布于 2024-09-15 01:55:31 字数 352 浏览 2 评论 0原文

我有一个旧版 Windows 客户端应用程序,它使用多个 .Net 程序集(我创建的),其中一个带有 COM 包装器。客户端应用程序驻留在根驱动器子文件夹中 (c:\somefolder...)。最近,Windows 更新后,应用程序无法正确加载 .Net 程序集。更新之前没有任何问题。

我通过将程序集移动到程序文件下的子文件夹并重新注册(重新注册)COM 程序集,然后从根驱动器下的现有位置删除文件来解决此问题。虽然这现在有效,但这不是一个长期的解决方案。

我在不同的 Windows 更新后看到了这个问题,所以我无法将其固定在特定的更新上。该问题主要出现在 XP 计算机上,但也曾在 Vista 和 7 上出现过。您对可能发生的情况有什么想法吗?谢谢。

I have a legacy windows client application that uses a several .Net assemblies (I created), one with a COM wrapper. The client application resides in a root drive subfolder (c:\somefolder...). Recently after a Windows update the application could not properly load the .Net assemblies. Prior to the update there were no issues.

I fixed the problem by moving the assemblies to a subfolder under program files and re-registering (regasm) the COM assembly, then deleting the files from their existing location under the root drive. Although this works now, it is not a long term fix.

I have seen this problem after different windows updates so I can't pin it on a specific update. The problem shows up primarily on XP machines but have seen on Vista and 7. Any ideas about what may be occuring? Thanks.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文