Home All Groups Group Topic Archive Search About

The "ResolveNativeReference" task failed unexpectedly.

Author
7 Feb 2007 7:35 AM
Hans
Hi!

I have a c/c++ module, wrapped by a managed c++ class in a C# application.

This has been working in .NET1.1 for some years now.

After updating to .NET2.0, the module can neither be loaded dynamically nor
be added to the references. In both cases,  the "ResolveNativeReference" task
fails.

Can anybody tell me how I can get this working???

To the architecture:

Module_A: interface ICommonInterface

Module_B: class MyWrappedC_class: ICommonInterface
                using Module_A;

Module_C: application
                using Module_A;
                ICommonInterface myInterface = null;
                    Assembly cAssembly = Assembly.LoadFrom(Module_B);
                    foreach(Type type in cAssembly.GetTypes())
                        if(type.IsClass && !type.IsAbstract)
                            if(type.GetInterface("ICommonInterface") != null)
                                myInterface =
(ICommonInterface)Activator.CreateInstance(type));

Thanx in advance, Hans

AddThis Social Bookmark Button