<程序集绑定>在父 web.config 中被忽略

发布于 2024-07-08 10:56:34 字数 677 浏览 6 评论 0原文

我有一个包含多个网站的文件夹,所有网站都使用 GAC 中的相同程序集。 每个网站还包含一些自己的“自定义”程序集,这些程序集引用通用程序集。

此文件夹中有一个 web.config,定义站点的通用设置,包括要在 // 元素中加载的程序集。

我想要做的是添加 /< assemblyBinding> 部分,以将来自较旧“自定义”程序集的请求重定向到 GAC 中安装的较新程序集。 (不幸的是,使用 machine.config 或 GAC 重定向策略不是选项,因为这会影响其他站点。)

似乎 < assemblyBinding> 部分被忽略,除非它位于网站自己的网络中.config,或 machine.config。

我已经遇到过 问题,所以我知道不是那样的。

有谁知道这是应该发生的事情还是我错过了什么?

I have a folder containing several websites, all using the same assemblies in the GAC. Each website also contains some 'custom' assemblies of their own that refer to the common assemblies.

There is a web.config in this folder, defining common settings for the sites, including the assemblies to load in a <system.web>/<compilation>/<assemblies> element.

What I want to be able to do is add a <runtime>/<assemblyBinding> section to redirect requests from the older 'custom' assemblies to the newer ones installed in the GAC. (Unfortunately, using machine.config or the GAC redirection policy aren't options as this will affect other sites.)

It seems that the <assemblyBinding> section is ignored unless it is in the website's own web.config, or the machine.config.

I've already come across the <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> problem so I know it's not that.

Does anyone know if this is what is supposed to happen or am I missing something?

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

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

发布评论

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

评论(1

星星的轨迹 2024-07-15 10:56:34

这应该会发生。 你没有做错什么。

欲了解更多信息,请查看
http://msdn.microsoft.com/en- us/library/2fc472t2(vs.71).aspx

It is supposed to happen. You did nothing wrong.

for more information, please take a look at
http://msdn.microsoft.com/en-us/library/2fc472t2(vs.71).aspx

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