Type not loaded. Please load call LoadAssembly first

This is an error that originates in .NET and is related to loading a type name that can't be found.

If this occurs when you're trying to the load the service initially before making any method calls (ie. when you first create the FoxPro Proxy object with loService = CreateObject("myProxy","V2")) then this error is likely caused by the following issue:

Calling a Service where the Class Name is different than the Service Name

If this occurs when you're explicitly creating other types using loProxy.oBridge.CreateInstance() the most likely cause for this problem is that you didn't specify the full type name properly. Go into Reflector and pick out the class name

You can also get type not loaded exceptions if the location of the assembly that you're trying to load is not secure. Specifically .NET doesn't allow loading of executable code like assemblies from a network location. There's a workaround by using a configuration switch for this

Loading Assemblies from a Network Location

+++ Rick ---


© West Wind Technologies, 2004-2020 • Updated: 12/21/12
Comment or report problem with topic