Hello,
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