MissingMethodException on Emulator calling interface Method

A

Achim Bohmann

Hi all!

i am writing an application on .NET framework which is devided in
several assemblies. the main prog initializes a "manager" which loads
about 15 assemblies using reflection.
now i splitted the windows forms from each single assembly into an own
assembly (meaning now having 2 assemblies for the same functionality as
before) in order to write the GUI again for compact framework with using
the worker assembly unchanged.

the problem now is, that calling the first function from manager
("initialize()", which is defined in IBaseFunctions interface) leads to
an MissingMethodException. the object browser says, that "manager" has
the IBaseFunctions interface defined with the "initialize()" method
inside...

can anybody explain why the call to manager.initialize() works on .NET
framework, but not on compact framework?
and does anybody know how to solve the problem with re-using the
worker-assemblies with not rewriting all the code?

thanks very much in advance
Achim
 
S

Sergey Bogdanov

Make sure that one of your assembly doesn't implement P/Invoke to .dll
that its declaration differs between device and desktop. It maybe the
one of reasons which throw MissingMethodException exception.

Sergey Bogdanov
http://www.sergeybogdanov.com
 
A

Achim Bohmann

....the manager.dll does not make calls via P/Invoke. Some others do, but
they are not loaded, yet.
the initialize from manager only inits some valiables. but this call
still crashes :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top