> > I am using the Registry class of OpenNetCF. But when i call any
> > method, it gives me MissingMethod exception. Could you tell me where
[quoted text clipped - 4 lines]
> Sounds like it's not finding the assembly properly. Try copying the
> OpenNETCF assembly to the same directory as your application.
> Could you please elaborate on what OpenNETCF assembly is? Do I
> require to install something? I just downloaded the Register.cs file
> and used it directly into my project. Do i have to do something else?
Ah, I assumed you'd downloaded the whole library (that's what most
people do). If you've just got Registry.cs, I would expect it to just
work, to be honest...
If you step through your code in the debugger, what line does the
MissingMethodException get thrown on?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Paul G. Tobey [eMVP] - 22 Jun 2004 17:02 GMT
I don't have it in front of me, but it might very well be using P/Invokes
which are declared in other .cs files. It's *not* the case that every .cs
file in OpenNETCF is intended to be use separately from every other one.
Use the debugger and trace into the method call. If you can't even make it
into the call which is defined in your project then you have some type of
referencing problem (you are referencing the main OpenNETCF library, but
haven't included it in your installation -- the .cs file is being ignored).
If you *can* step into it, tell us where it actually fails!
Paul T.
> > Could you please elaborate on what OpenNETCF assembly is? Do I
> > require to install something? I just downloaded the Register.cs file
[quoted text clipped - 6 lines]
> If you step through your code in the debugger, what line does the
> MissingMethodException get thrown on?
Jon Skeet [C# MVP] - 22 Jun 2004 17:09 GMT
> I don't have it in front of me, but it might very well be using P/Invokes
> which are declared in other .cs files.
In that case it shouldn't even compile though, should it?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Paul G. Tobey [eMVP] - 22 Jun 2004 17:14 GMT
If the OpenNETCF stuff is on the development machine but, for some reason,
not installed on the device (maybe the EXE is being manually copied, rather
than deployed from VS.NET). I've done that before...
Paul T.
> > I don't have it in front of me, but it might very well be using P/Invokes
> > which are declared in other .cs files.
>
> In that case it shouldn't even compile though, should it?
Peter Foot [MVP] - 22 Jun 2004 21:18 GMT
Also there are two fairly similar Registry.cs files in separate OpenNETCF
projects. The one in OpenNETCF.dll has the device side P/Invokes, the one in
the Communication project has the desktop RAPI versions and the class is
named CERegistryKey.
Peter

Signature
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org
> If the OpenNETCF stuff is on the development machine but, for some reason,
> not installed on the device (maybe the EXE is being manually copied,
[quoted text clipped - 8 lines]
>>
>> In that case it shouldn't even compile though, should it?