RegistryKey: Access denied under Vista


Author
Message
Ralph Rutschmann
Ralph Rutschmann
StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)
Group: Forum Members
Posts: 69, Visits: 1.3K
Hello all,

my app is due to test on different machines now and works find under XP Prof. Unfortunately not under Vista Ultimate (no other version of this OS to test on this time). I'm logged on as admin. All is working as expected, except the SecurityDialog. As soon as I try do close that dialog, I get an exception:

UnauthorizedAccessException
  Der Zugriff auf den Registrierungsschlüssel HKEY_LOCAL_MACHINE\Software\MicroFour\StrataFrameSecurity\SecurityDialog wurde verweigert.

Source     : mscorlib

Stack Trace:
   bei Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
   bei Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)
   bei Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
   bei Microsoft.Win32.Registry.SetValue(String keyName, String valueName, Object value, RegistryValueKind valueKind)
   bei MicroFour.StrataFrame.Win32.RegistryRepository.WriteValue(String KeyPath, String ValueName, Int32 Value)
   bei MicroFour.StrataFrame.Win32.RegistryRepository.WriteValue(String ValueName, Int32 Value)
   bei MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.SaveSizeAndLocation()
   bei MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnFormClosing(FormClosingEventArgs e)
   bei System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)

I use the SecurityDialog 'as is' and did no changes. Does anybody know why I get the above error and / or how to avoid it?

Thank you very much.

Best regards,

Ralph

Attachments
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search