Hi,
I am using the Microsoft Caching Block with the database as a backend
store, and all works fine under .NET. I am trying to get the same code
to work when my assembly is called via COM Interop from a VB6 client.
When this happens, the caching block falls over because a call to
Type.GetType has failed to load the required assembly. The Assembly is
fully qualified like this:
Microsoft.Practices.EnterpriseLibrary.Caching.Database.DataBackingStore,
Microsoft.Practices.EnterpriseLibrary.Caching.Database,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
The code looks like this:
Type providerType = Type.GetType(typeName, false);
>From what I understand, Type.GetType tries to load the assembly when
GetType is called, so in a normal app it would look in the "debug"
folder if running in debug, and probably the GAC too... But because
this is COM INterop, I don't understand where .NET is looking for the
assembly, and I'm not sure what I can do - perhaps force it to look
somewhere else perhaps?
Can anyone help me?
Matt.