Hello,
I am calling a c# class library from vb6 that performs some simple
instrumentation calls, for example:
(namespace is WMIWrapper)
public void SendToWMI(string message)
{
MessageEvent msgEvent = new MessageEvent();
msgEvent.message = message;
Instrumentation.Fire(msgEvent);
}
If I have a .NET test application utilize this library, it works fine.
When I enable "register for com interop" and reference the component in
vb6, things seem to go ok, as I can step into the above method (i.e.
the dll is "found") but when i step over the Instrumentation.Fire call,
I get the following:
'DefaultDomain': Loaded 'oqqnv3u5', No symbols loaded.
An unhandled exception of type 'System.IO.FileNotFoundException'
occurred in mscorlib.dll
Additional information: File or assembly name WMIWrapper, or one of its
dependencies, was not found.
The call stack tells me this exception happened at
system.management.dll!System.Management.Instrumentation.InstrumentedAssembly.InstrumentedAssembly(System.Reflection.Assembly
assembly = {System.Reflection.Assembly},
System.Management.Instrumentation.SchemaNaming naming =
{System.Management.Instrumentation.SchemaNaming}) + 0x35f bytes
I have tried putting the dll in different places, but ultimately i have
no idea how to fix this.
Thank you,
-Eric
Eric Falcao - 08 Jun 2005 00:13 GMT
For anyone who is interested, this was fixed by doing a search through
the registry and removing any references to my assembly, then
rebuilding and re-registering... some kind of conflict I suppose.