Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using newer version than whats in the GAC?? 1

Status
Not open for further replies.

aljubicic

Programmer
Nov 7, 2002
82
AU
Hi All,

I have an application which I help build and created a msi file for installtion purposes. Installing the application registers a few dlls in the GAC. Now when I want to change something in the application from .NET I am changing of of these components dlls that is in the GAC. Now to test this change I thought that I just need to up the Assembly version number so when I run the application through .NET it wont pick up the dll from the GAC but use the dll that I have just changed in my application directory.

Am I missing something here? Is something else I need to do so it picks up the dll from the application directory and not from the GAC??

Any help would be great

thanks
Anthony
 
it is not supposed to but you may want to look at fusion logs using fuslogvw and setting the following registry key:
HKLM/SOFTWARE/Microsoft/Fusion/ForceLog [REG_DWORD] = 1

What this does is log ALL fusion event that occur in the system. From there, you should see what is the version requested by your application. For more information on fuslogvw and other fusion stuff, take a look here:
 
I thought that the default behavior was that local files always took precedence over GAC files, unless you are specificly pulling resources from the GAC.

I'm having a hard time following your writing, are you saying that you want to use the GAC files regardless of the local files? Or Local files regardless of the GAC files?

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
This is a usual misbelieve caused by some official documentation that said that but in fact it is not the case. GAC is used over bin folder except if the dll used in the project is not exactly the same as the one in the GAC (different name, version or SNKey) and that no policy tells to do otherwise.

You may test it with this line:
Dim isInGAC As Boolean = GetType([aTypeDefinedInTheAssemblyToTest]).Assembly.GlobalAssemblyCache
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top