Asp.net Reinstalling a DLL into the GAC

前端 未结 2 403
醉话见心
醉话见心 2021-01-14 09:11

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.

The old DLL is th

2条回答
  •  悲&欢浪女
    2021-01-14 09:37

    Since you don't make a reference to application pools, I'm going to assume you are on the old version of IIS. In that case, what you'll need to do is to "touch" all the DLLs in each site that references the DLL.

    The problem is that the code is already loaded and you need to find a non-intrusive way to re-load the application. Recycling app-pools is an effective way to do this. If you are on the old IIS that doesn't have app-pools, then updating the last-modified in the /bin/ folders or web.config files will reload the application without affecting the other sites.

    So a script of some kind to do the above is in order. All it needs to do is update the lastmodified on the DLLs in every /bin application directory.

提交回复
热议问题