473,385 Members | 1,647 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,385 software developers and data experts.

ASp.NET caches assemblies in the GAC

Hi,
I noticed that ASP.NET caches .NET assemblies installed in the GAC ..
calling HttpRuntime.UnloadAppDomain() unfortunately doesn't seem to help ,
likely because the ASP.NET appdomomains are
loaded using the MultiDomainHost model which shares the assemblies in the
GAC..

only restaring the whole web service (using the IISRESET command line tool)
seems to help ..

any other softer solution than an IIS reset ?
thanks in advance
--
sa******@sabbasoft.com
MTS - COM+ - VBCOM - Enterprise Services - Security FAQ
..NET & COM+ books selected list
http://www.sabbasoft.com
"Moving fast is not the same as going somewhere."


Nov 18 '05 #1
2 1500
You'll probably find that by resetting or re-installing the dlls in the GAC
also does the same trick as doing an IIS reset - but you probably don't want
to do this either :) I could be wrong here but I'm not aware of any .NET
object that's capable of updating the GAC programmatically.
That would make sense though since the assemblies in the GAC are shared
between resources (not just ASP.NET) and the objects stored in the GAC would
get locked by processes using it.

If your ASP.NET applications need to use a separate assembly that needs to
be updated often, place this in the /bin directory of the application
instead. Although its convenient and more manageable to have 1 dll stored
in the GAC I've found it still falls foul of the old ASP problem of having
to do an entire restart to unlock the dll the administer changes.

J

"enrico sabbadin" <sa******@infinito.it> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Hi,
I noticed that ASP.NET caches .NET assemblies installed in the GAC ..
calling HttpRuntime.UnloadAppDomain() unfortunately doesn't seem to help ,
likely because the ASP.NET appdomomains are
loaded using the MultiDomainHost model which shares the assemblies in the
GAC..

only restaring the whole web service (using the IISRESET command line tool) seems to help ..

any other softer solution than an IIS reset ?
thanks in advance
--
sa******@sabbasoft.com
MTS - COM+ - VBCOM - Enterprise Services - Security FAQ
.NET & COM+ books selected list
http://www.sabbasoft.com
"Moving fast is not the same as going somewhere."

Nov 18 '05 #2
thank Janaka for your reply,

no re-installing the dlls in the GAC does not work, (i do it automatically
in each rebuild using a macro),
they are not locked and the GAC is actually updated, however the w3 working
process (i'm running on 2003) keeps on using the old ones.

best regards

"Janaka" <ja****@magicalia.com> wrote in message
news:uz**************@tk2msftngp13.phx.gbl...
You'll probably find that by resetting or re-installing the dlls in the GAC also does the same trick as doing an IIS reset - but you probably don't want to do this either :) I could be wrong here but I'm not aware of any .NET
object that's capable of updating the GAC programmatically.
That would make sense though since the assemblies in the GAC are shared
between resources (not just ASP.NET) and the objects stored in the GAC would get locked by processes using it.

If your ASP.NET applications need to use a separate assembly that needs to
be updated often, place this in the /bin directory of the application
instead. Although its convenient and more manageable to have 1 dll stored
in the GAC I've found it still falls foul of the old ASP problem of having
to do an entire restart to unlock the dll the administer changes.

J

"enrico sabbadin" <sa******@infinito.it> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
Hi,
I noticed that ASP.NET caches .NET assemblies installed in the GAC ..
calling HttpRuntime.UnloadAppDomain() unfortunately doesn't seem to help , likely because the ASP.NET appdomomains are
loaded using the MultiDomainHost model which shares the assemblies in the GAC..

only restaring the whole web service (using the IISRESET command line

tool)
seems to help ..

any other softer solution than an IIS reset ?
thanks in advance
--
sa******@sabbasoft.com
MTS - COM+ - VBCOM - Enterprise Services - Security FAQ
.NET & COM+ books selected list
http://www.sabbasoft.com
"Moving fast is not the same as going somewhere."


Nov 18 '05 #3

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

Similar topics

5
by: Phil Powell | last post by:
I created a page that will be doing image resizing and manipulation, which seems to work (using GD library). However, upon returning to the page where the image has been changed, I still see the...
6
by: Tom Dacon | last post by:
If you're not putting assemblies in the GAC, but are referencing shared code with copylocal=true into the projects that use them, is there any value to signing the assemblies? In the environment...
1
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
8
by: Charles Law | last post by:
I'm sorry to keep harping on about this one, but it is really quite important for me to be able to list _all_ required assemblies in my Help About box. Herfried kindly posted some code before that...
3
by: Claudio Pacciarini | last post by:
Hi everyone, I have a question about .NET code sharing and reuse, and also about application design best practices / guidelines. Currently, we have many different .NET projects in source...
2
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application =...
3
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... At least by the group title, this seems like a question for dotnet.framework.aspnet.caching but that group seems pretty slow. I'm trying to sort things out with a co-worker. We've got...
4
by: illegal.prime | last post by:
Hi all, I'm getting unexpected results when trying to preload assemblies into an AppDomain I'm creating. Upon creation of the AppDomain - I attach an AssemblyResolve to both my current AppDomain...
0
by: jason-sage | last post by:
Hi all, I just started using the warnings module in Python 2.5.2. When I trigger a warning using the default warning options, an entry is created in a module-level cache so that the warning is...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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.