473,383 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

quicker way to refresh dll in GAC other than IISreset?

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
Nov 19 '05 #1
2 7120
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.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 28 Sep 2005 07:52:11 -0400, "Tarren" <noemailplease@thankyou>
wrote:
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


Nov 19 '05 #2
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/archiv...05/208375.aspx

-Brock
DevelopMentor
http://staff.develop.com/ballen
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

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lee | last post by:
Hello all, I am trying to perform a reboot on my server from an asp page. I have a link on my page that, when clicked on, redirects to a .stm page that displays a message about the server...
1
by: skilla | last post by:
Hi people, I've got WinXP Pro SP2 English on my laptop and since installing SP2 got the IISRESET "No such interface supported" error. The whole story: I was writing a fairly simple ASP app...
13
by: Chris Mantoulidis | last post by:
There must be some tips to make a program quicker. I guess more than 50% of ppl here will say "avoid the if-s". Yeah I know this makes a program quicker but some times an "if" is inevitable,...
2
by: Sunil Menon | last post by:
Dear All, I would like run a program that does an IISReset when aspnet_wp.exe (PID: 1234) was recycled...In IIS service we have a property "Recovery" where you can specify a program to run...but...
5
by: Reader | last post by:
Here is the story. I have my ASP.Net web appliacation that when I uninstall an old version and install a new version the old version's assemblies are still in the system somewhere and cause the...
1
by: Daren | last post by:
Hi, I have a site with page-level caching set at 10 minutes. However, when I update it, I want to be able to empty the cache immediately, so changes are seen right away. At present I manually...
2
by: Robert Mileski | last post by:
I've made some program in Visual Basic 2005 that works with changing files and folders. After I've finished it, the main problem is to refresh the Windows OS. I mean the same thing as when we press...
1
by: shai kedem | last post by:
hello, this post is related to iisreset slowness issue I am experiancing. I mean by slowness that IIS reset takes some time to terminate the asp.net working processes and after that starts up...
3
by: opus18 | last post by:
just as the subject states, our dotnet application just seems to hang if IISRESET is executed. If have to reboot the entire server to get things working again. If I browse to any other standard...
4
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hey guys and misters I was wondering if there was a way to write a VB script (file .vbs, WSH scripting) to do such a thing. I am trying to open inetmgr by code, open services.msc by code, and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.