Strange MissingMethodException

G

Guest

I have written a class library (for encryption) which is intended to be used
by compact, desktop, and web service applications - all in C#.

One of the classes in the class library has two public static methods;
Decrypt and DecryptXml. DecryptXml calls Decrypt.

This class library is added as a reference in the CE application, which then
calls the DecryptXml method. However, at the point that this method calls
Decrypt, a MissingMethodException is thrown. Even though the two methods are
in the same class. If i change the CE app to call Decrypt directly, the
exception is thrown in the CE app at this point. I can navigate from the
call in the CE app to the method definition in the class library using
right-click and Go To... (they're in the same solution at the moment), and
everything compiles.

The problem does not occur when calling either method from the Desktop app.

So in summary: Calling the Decrypt method throws a missing method exception,
even when called from within it's own class, but only running under the CE
App.

Anyone seen this before, or have any suggestion?

Thanks.
 
D

Daniel Moth

What target are you using to test this and does it have the latest service
pack?

Note that if you have a dll to be used on both platforms it needs to be
built against the CF.

Can you step into the code and see exactly where the exception occurs? Have
you looked at the IL (ildasm or reflector) to see what gets compiled?
Overall, I think you should post a small repro so we can have a look at it.

Cheers
Daniel
 
G

Guest

Daniel,

Thanks. I basically had forgotten to build it under a compact framwork
class library. I'm now not getting MissingMethodExceptions, but quite a few
'not supported' problems to work on.
 

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