Welcome to MSDN Blogs Sign in | Join | Help

May 2003 - Posts

Avoid Partial Binds

A partial bind is when only part of the assembly display name is given when loading an assembly. Assembly.LoadWithPartialName() also uses partial binding. First, it calls Assembly.Load(). But, if that fails to find the assembly, it will return the latest
Posted by Suzanne Cook | 13 Comments
Filed under:

Using Type.GetType(typeName)

If no assembly is specified, Type.GetType() will only look in the calling assembly and then mscorlib.dll for the type. For it to look in any other assembly, you need to give the Type.AssemblyQualifiedName for the type. For example: Type.GetType("System.Uri,
Posted by Suzanne Cook | 5 Comments
Filed under:

When to Change File/Assembly Versions

First of all, file versions and assembly versions need not coincide with each other. I recommend that file versions change with each build. But, don’t change assembly versions with each build just so that you can tell the difference between two versions
Posted by Suzanne Cook | 28 Comments
Filed under:

Choosing a Binding Context

There are three 'contexts' for assembly binding: Load context In general, if the assembly was found by probing in the GAC, a host assembly store (if hosted), or the ApplicationBase / PrivateBinPaths of the AppDomain, the assembly will be loaded in the
Posted by Suzanne Cook | 41 Comments
Filed under:

Assembly Display Names

An assembly display name should include the assembly simple name, version, culture and public key token. The assembly simple name is usually the file name of the assembly without the extension (“.dll” or “.exe”). For example, the assembly display name
Posted by Suzanne Cook | 32 Comments
Filed under:

Debugging Assembly Loading Failures

So...you're seeing a FileNotFoundException, FileLoadException, BadImageFormatException or you suspect an assembly loading failure? Try the steps below to start your debugging process. First, get the Message property from the exception. If the exception's
 
Page view tracker