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 / May 2008

Tip: Looking for answers? Try searching our database.

CeRegistry OpenNetCF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ruben - 27 May 2008 19:40 GMT
Hi boys.... i´m working with a great framework named OpenNetCF, and when i
try to look for a registry value from my desktop app ( my device isPPC WM5,
ActiveSync), all time i get this error:
{"Error retrieving registry properties"}...i tried with and emulator, and i
get the same error... i´ll copy my code:

I´m using OpenNETCF.Desktop.Communication from my desktop app.
string subKey = @"\MUI";

CERegistryKey registryKey = CERegistry.LocalMachine.OpenSubKey(subKey);

string myvalue= (string)registryKey.GetValue("Enable");

Any suggestions ?

Thanks a lot.
Paul G. Tobey [eMVP] - 27 May 2008 19:53 GMT
I'd suggest that the value isn't there, but you haven't told us what part of
this code is generating the error or whether you've verified the presence of
the value/key/whatever with Remote Registry Editor.

Paul T.

> Hi boys.... i´m working with a great framework named OpenNetCF, and when i
> try to look for a registry value from my desktop app ( my device isPPC
[quoted text clipped - 12 lines]
>
> Thanks a lot.
Chris Tacke, eMVP - 27 May 2008 19:56 GMT
And "Enable" is a REG_SZ key, not a REG_DWORD?  You've initialized RAPI and
connected before getting to this point in your code?

Signature

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com

> Hi boys.... i´m working with a great framework named OpenNetCF, and when i
> try to look for a registry value from my desktop app ( my device isPPC
[quoted text clipped - 12 lines]
>
> Thanks a lot.
Ruben - 27 May 2008 21:13 GMT
Yes i verified the presence of teh key with w remote registry editor.

The problem is here:

CERegistryKey registryKey = CERegistry.LocalMachine.OpenSubKey(subKey);

after the execution of that line of code, registryKey is null, and when i
look into i see the error: {"Error retrieving registry properties"}

I initialized without problems RAPI, and i was trying to look for another
subkeym and i get the same error....

Any suggestion ?

thanks in advance

> And "Enable" is a REG_SZ key, not a REG_DWORD?  You've initialized RAPI
> and connected before getting to this point in your code?
[quoted text clipped - 15 lines]
>>
>> Thanks a lot.
Chris Tacke, eMVP - 27 May 2008 21:18 GMT
Can you view the registry info with the Remote Registry Viewer?  I'm
wondering if it's a configuration/provisioning problem and it's simply
locked down.

Signature

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com

> Yes i verified the presence of teh key with w remote registry editor.
>
[quoted text clipped - 31 lines]
>>>
>>> Thanks a lot.
Ruben - 27 May 2008 21:24 GMT
Yes, i can see the registry info with a Remote Registry Viewer... The
security setting is OFF.

> Can you view the registry info with the Remote Registry Viewer?  I'm
> wondering if it's a configuration/provisioning problem and it's simply
[quoted text clipped - 35 lines]
>>>>
>>>> Thanks a lot.
Paul G. Tobey [eMVP] - 27 May 2008 21:39 GMT
I've just verified that the same code, suitably surrounded with the creation
of a RAPI object, a call to Connect() and, after the registry stuff is done,
a call to Disconnect(), works fine.  If you're doing that properly and it
still doesn't work, it almost has to be some security thing...

Paul T.

> Yes, i can see the registry info with a Remote Registry Viewer... The
> security setting is OFF.
[quoted text clipped - 39 lines]
>>>>>
>>>>> Thanks a lot.

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.