从 GAC 加载站点 dll 时出现问题

发布于 2024-09-16 02:31:41 字数 293 浏览 2 评论 0原文

我的服务器上有大约 70 个站点,它们都使用相同的 dll。我认为最好在 GAC 中注册它们并将它们从站点的 bin 文件夹中删除,这样它们就都在同一个地方查看。我的理解是,如果在 bin 目录中找不到网站所需的 dll,那么 asp 就会在 GAC 中查找它。我已经对所有 dll 进行了强命名,并将它们注册到 GAC 中,但是当我从其中一个站点删除 dll 来测试它时,它最终给了我一个错误,即它无法加载在其中一个 dll 中找到的类型。如果 asp 不在 bin 目录中,或者我对它的工作原理的理解不正确,我还需要做些什么才能让 asp 在 GAC 中查找吗?谢谢。

I have about 70 sites on a server that all use the same dlls. I thought it would be better to register them in the GAC and remove them from the site's bin folder so they're all looking at one place. My understanding is that if a dll that the site requires isn't found in the bin directory that asp then looks for it in the GAC. I've strong named all the dlls and registered them in the GAC but when I removed the dlls from one of the sites to test it it ended up giving me the error that it couldn't load the type found in one of the dlls. Is there something else I need to do to make asp look in the GAC if it's not in the bin directory or is my understanding of how that works incorrect? Thanks.

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

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

发布评论

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