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 / Compact Framework / June 2004

Tip: Looking for answers? Try searching our database.

Registry class problem.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amit Patankar - 22 Jun 2004 05:32 GMT
Hi,

I am using the Registry class of OpenNetCF. But when i call any method, it gives me MissingMethod exception. Could you tell me where I am going wrong? Or should i include something?

Also does anyone know how to use the class?

Thanks in advance.
Amit Patankar
Jon Skeet [C# MVP] - 22 Jun 2004 06:26 GMT
> I am using the Registry class of OpenNetCF. But when i call any
> method, it gives me MissingMethod exception. Could you tell me where
> I am going wrong? Or should i include something?
>
> Also does anyone know how to use the class?

Sounds like it's not finding the assembly properly. Try copying the
OpenNETCF assembly to the same directory as your application.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Amit Patankar - 22 Jun 2004 07:15 GMT
Hi,
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?

Thanks.
Amit Patankar

> > 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.
Jon Skeet [C# MVP] - 22 Jun 2004 11:14 GMT
> 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?

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.