<qualifyAssembly> Element

<qualifyAssembly> Element 

Specifies the full name of the assembly that should be dynamically loaded when a partial name is used.

<qualifyAssembly partialName="PartialAssemblyName"

The following sections describe attributes, child elements, and parent elements.


Attribute Description


Required attribute.

Specifies the partial name of the assembly as it appears in the code.


Required attribute.

Specifies the full name of the assembly as it appears in the global assembly cache.

Child Elements


Parent Elements

Element Description


Contains information about assembly version redirection and the locations of assemblies.


The root element in every configuration file used by the common language runtime and .NET Framework applications.


Contains information about assembly binding and garbage collection.

Calling the Assembly.Load method using partial assembly names causes the common language runtime to look for the assembly only in the application base directory. Use the <qualifyAssembly> element in your application configuration file to provide the full assembly information (name, version, public key token, and culture) and cause the common language runtime to search for the assembly in the global assembly cache.

The fullName attribute must include the four fields of assembly identity: name, version, public key token, and culture. The partialName attribute must partially reference an assembly. You must specify at least the assembly's text name (the most common case), but you can also include version, public key token, or culture (or any combination of the four, but not all four). The partialName must match the name specified in your call. For example, you cannot specify "math" as the partialName attribute in your configuration file and call Assembly.Load("math, Version=") in your code.

The following example logically turns the call Assembly.Load("math") into Assembly.Load("math,version=,publicKeyToken=a1690a5ea44bab32,culture=neutral").

      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <qualifyAssembly partialName="math" 

Community Additions

© 2015 Microsoft