Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3433754
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:36:54+00:00 2026-05-18T07:36:54+00:00

I have code below which has been working on devices of type Windows Mobile

  • 0

I have code below which has been working on devices of type Windows Mobile 5 and 6.1

private const string OwnerSubKey = @"ControlPanel\Owner";
regKey = CERegistry.CurrentUser.CreateSubKey(OwnerSubKey);

When I have a 6.5 device cradled and the debugger hits the line above, I get

“Type:
System.Runtime.InteropServices.ExternalException

MESSAGE:
Error writing to the RegistryKey

STACK TRACE:
at OpenNETCF.Desktop.Communication.CERegistryKey.SetValue(String name, Object value)
“

I am not sure what has changed between 6.1 and 6.5 or is it a setting on the device. SOTI was able to manipulate the registry.

I also tried the code below with same exception on the CreateSubKey.

var controlPanel = CERegistry.CurrentUser.OpenSubKey(@"ControlPanel", true);
var key = controlPanel.CreateSubKey("Owner");

If I do a GetSubKeyCount() it rightly returns the count.

Any help is appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T07:36:54+00:00Added an answer on May 18, 2026 at 7:36 am

    I was unable to write to the registry on the 6.5 device using opennetcf.

    I ended up moving the information currently in the registry into a config file that opennetcf could write to.

    Has to make this change to the legacy application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following mapping in my Castle Windsor xml file which has worked
We've all been there. You have written some code and unit tests, the tests
We have some solution that we built against a MOSS farm one of which
I have two data structure classes (this is a simplified version of my code)
The scenario I am facing is that I have an ASP.NET web service (.NET
I've been reading Illustrated C# 2008 by Daniel Solis (an excellent book, btw) and
I am using the jQuery autocomplete plugin and have wired up an input field
Friends, In testing our Oracle Forms application on Vista I have found a interesting
I've got a model for Orders in a webshop application, with an auto-incrementing primary
I am fairly new to C# programming and I am stuck on my little

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.