Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2005

Tip: Looking for answers? Try searching our database.

c# class library called from vb6 yields filenotfoundexception upon WMI call

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric  Falcao - 06 Jun 2005 20:14 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.