quicker way to refresh dll in GAC other than IISreset?

T

Tarren

Hi:

My app is running the dll from the GAC. The only way I know to force the
app to use a freshly copied and redeployed dll is to run an IIS reset. Is
there a command in the GACUTIL or something similar that would clear out the
cached dll and force everything to use the new copy of the dll?

Thanks
 
S

Scott Allen

One of the drawbacks of using a GAC'ed assembly is that the .dll will
be locked by the ASP.NET worker process. I don't know of anyway to hot
swap the file.
 
B

Brock Allen

If this is a development-time nuisance, then yeah... this is a well known
problem since AppDomains load strongly named assemblies domain neutral, which
are not scoped to an AppDomain. If this is a live server then I'd wonder
why you're replacing a GAC assembly with the exact same version. I'm assuming
your situation is the former. Anyway, good description of the problem here:

http://blogs.msdn.com/junfeng/archive/2004/08/05/208375.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top