Welcome to MSDN Blogs Sign in | Join | Help

September 2004 - Posts

Assembly binding vs Assembly Loading

This is purely terminology we used internally. Assembly Binding is the process of probing. A.k.a, given an assembly name, finding out where the assembly is. Assembly binding is performed by fusion. This also includes applying policy. Managed code is not
Posted by junfeng | 0 Comments
Filed under: ,

When AssemblyResolve handler meets AssemblyResolve handler

When CLR loader cannot find an assembly via the standard probing, CLR loader will give you a chance to provide the assembly, by firing AssemblyResolve event. You can subscribe to this event, and provide the assembly when necessary. Now what if your event
Posted by junfeng | 0 Comments
Filed under:

Update of Managed GAC API wrappers and test applications

I added the functionality to enumerate install references of GAC assemblies to the managed GAC API wrappers. Meanwhile I added some comments in UninstallAssembly to explain the behavior David Levine saw. It is really about what is fully specified name,
Posted by junfeng | 0 Comments
Filed under: ,

Diagnose Assembly Loading Failures

Majority of the time, you can use fuslogvw.exe to find out why an assembly load failed. There are times when fusion binding log tells you that the assembly is found successfully, but you still get an FileLoadException. One of the common case is that one
Posted by junfeng | 5 Comments
Filed under: ,

Gacutil does not show ngen cache's content in .Net 2.0

Gacutil shows the content of ngen cache in v1.0 and v1.1. In v2.0, this feature is removed from gacutil. The reason is several folds: 1. We want people to use the right tool for the right job. Ngen.exe is the right tool to managed ngen cache. Gacutil
Posted by junfeng | 0 Comments
Filed under:

Why do you use GAC APIs?

I can think of three reasons that you need to use GAC APIs, instead of the existing tools. 1. Customized installer: You need to install assemblies to GAC, and you cannot install MSI. Example: The assemblies are created when your application runs. So those
Posted by junfeng | 4 Comments
Filed under:

ATI's latest driver's Catalyst Control Center Written in .Net framework

In case you don't know, the contral center from ATI's latest driver offer requires .Net framework 1.1. http://ati.com/support/drivers/winxp/radeonwdm-xp.html?type=xp&prodType=graphic&prod=productsXPdriver&submit.x=12&submit.y=6&submit=GO%21
Posted by junfeng | 4 Comments
Filed under:

Sample for using GAC APIs, Sample of Managed GAC API Wrappers, and a Test Application for Managed GAC API Wrappers

In case you did not notice, there is an "Article" link in the blog's main page I added three articles there. Fusion GAC API Samples Sample Managed GAC API Wrappers Test Application for Managed GAC API Wrappers As usually, those are provided "AS IS" with
Posted by junfeng | 0 Comments
Filed under: ,

Assembly Display Name

Every assembly has so-called "Display name". As of today, the display name of an assembly is shown as "name, Version=xx.xx.xx.xx, Culture=xx, PublicKeyToken=xx". It starts with a "name", then a bunch of "key=value" pairs, separated by comma. Thos keys
Posted by junfeng | 12 Comments
Filed under: ,

The new MSDN web site

When I was searching for some MSDN links for Whidbey stuff in http://lab.msdn.microsoft.com/library last night, I was redirected to http://msdn2.microsoft.com/library/default.aspx . I am really impressed by the new site. Now you can use "http://msdn2.microsoft.com/library/<namespace>.aspx"
Posted by junfeng | 22 Comments
Filed under:

GAC Assembly Trace Reference

When you install an assembly to GAC, you have the option to specify an Assembly Trace Reference . And we strongly recommend that you specify a trace reference, for the reason I will discuss below. The idea behind trace reference is really simple. When
Posted by junfeng | 4 Comments
Filed under: ,

mscorlib.dll is in GAC now in .Net framework 2.0

Mscorlib.dll is in GAC now in .Net framework 2.0, contrast to v1.0/v1.1, where mscorlib is in framework's directory. If you rely on mscorlib.dll's path to get framework's directory, you have to change your code to use System.Runtime.IneropServices.RuntimeEnvironment.GetRuntimeDirectory
Posted by junfeng | 1 Comments
Filed under:

GAC, Assembly ProcessorArchitecture, and Probing

As I mentioned in a previous post, assemblies in .Net framework 2.0 now have ProcessorArchitecture now. 64 bit .Net framework 2.0 redist will install both 64 bit runtime and 32 bit runtime. But there is only one GAC. And both 64 bit runtime and 32 bit
Posted by junfeng | 9 Comments
Filed under: ,
 
Page view tracker