IIS工作进程:当不同站点引用不同版本时会加载哪些DLL?
IIS 6.0,一个根网站,下面有虚拟目录。
根网站有自己的 bin
目录,其中包含旧版本的 DLL...它是一个生产站点,我们不想碰它。
示例:
CSA.Network.DLL 1.3.9117.0
下面的虚拟目录有其 bin
目录,其中包含这些 DLL 的更新版本,例如:
CSA.Network.DLL 1.7.8221.0
当 IIS 工作进程启动时,它会加载 1.3 版本的 DLL...当它在虚拟目录中加载一个页面,它也会加载 1.7,还是会坚持使用 1.3,因为它已经在内存中了?
这些引用是项目引用,因此设置为不需要特定类型,这让我认为它将尝试使用 1.3 并且从不加载 1.7。这是正确的吗?这里有哪些有效规则?
谢谢!
IIS 6.0, one root website with Virtual Directories underneath.
The root website has its own bin
directory, which contains older versions of DLLs... it's a production site, and we don't want to touch it.
Example:
CSA.Network.DLL 1.3.9117.0
The virtual directory underneath has its bin
directory, which contains a more recent version of these DLLs, e.g.:
CSA.Network.DLL 1.7.8221.0
When the IIS worker process launches, it loads the 1.3 version of the DLL... when it loads a page in the virtual directory, will it load 1.7 as well, or will it stick with 1.3 because it's already in memory?
The references are project references, and as such are set to not require a specific type, which leads me to think it will try to use 1.3 and never load 1.7. Is that correct? What rules are in effect here?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
vcsjones 和 Sam Shiles 的评论涵盖了所有内容...但重申一下:
Comments by vcsjones and Sam Shiles cover everything... but to reiterate: