Asp.net将一个DLL重新安装到GAC中 [英] Asp.net Reinstalling a DLL into the GAC

查看:140
本文介绍了Asp.net将一个DLL重新安装到GAC中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在GAC中重新安装一个DLL,一切似乎都可以正常工作,但是访问它的Web应用程序似乎还在使用旧的。

I'm trying to re-install a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one.

旧的DLL与新的一样,只有一个小的编辑,它将被50个不同的网站使用,所以改变版本,然后改变web.config中的引用不是一个好的解决方案。

The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the version then changing the reference in the web.config is not a good solution.

重新启动IIS服务器或工作进程不是一个选项,因为已经有50个站点运行,必须继续这样做。

Restarting the IIS server or the worker process isn't an option as there are already 50 sites running that must continue to do so.

有没有人知道我做错了什么,或者我可以做些什么来弥补这种情况?

does anyone know what i'm doing wrong or what i can do to remedy this situation?

推荐答案

AFAIK,您需要重新启动IIS才能获得对更新的DLL的新参考。您最好的选择是在低流量时执行重置。如果您使用负载平衡运行多个服务器,则可以防止新连接打到一个服务器,直到所有连接都已关闭。然后,更新DLL,重新启动IIS,并将服务器重新连接到连接池。对于每个服务器重复此操作,最终用户无可见的停机时间。

AFAIK, you need to restart IIS for it to get a fresh reference to the updated DLL. Your best bet is to perform the reset at a low traffic time. If you are running multiple servers with load balancing, you can prevent new connections from hitting one server until all connections have been closed. Afterwards, update the DLL, restart IIS, and bring the server back into the connection pool. Repeat for each server with no visible downtime to the end users.

这篇关于Asp.net将一个DLL重新安装到GAC中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆