Loads a .NET assembly into the .NET Runtime currently executing. Note that you should ensure that any required assemblies and dependent assemblies are loaded explicitly into the runtime.

If the runtime has not been started explicitly it will be launched when this method is called.

Note that the wwDotBridge .NET Proxy loads the following assemblies by default so they do not need to be loaded manually:

  • mscorlib
  • System


The assembly to be loaded. The assembly can be specified in any fo the following ways:

  • Using a full path to the Assembly
    You can load an assembly from disk by providing a fully qualified path to the assembly. This works both for signed and unsigned assemblies as long as you know the path. Note that this functionality may not work under some restricted system user policy settings and can be slower than using just the assembly name (see next section), but it is the most common way to load a third party or custom assembly consistently.
  • Assembly Name
    A simple local assembly name which is found in the EXE's startup path. Should be referenced with just the filename without any .DLL or .EXE extension. Note that this is not the current directory but MUST be the same path as the launching EXE.
  • Fully qualified Assembly Name
    This is a fully qualified .NET assembly name which must be used for any Assemblies loaded from the Global Assembly Cache. This syntax must also be used with any local assemblies that are strongly signed.
oBridge.LoadAssembly("System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089")
  • Special Names
    Several 'high level' names have been set up for commonly used assemblies:
    • System.Xml
    • System.Data
    • System.Web
    • System.Windows.Forms

See also:

Class wwDotNetBridge

© West Wind Technologies, 1996-2019 • Updated: 03/28/18
Comment or report problem with topic