RegistryKey: Access denied under Vista


Author
Message
Ralph Rutschmann
Ralph Rutschmann
StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)
Group: Forum Members
Posts: 69, Visits: 1.3K
Hello Trent,

thank you very much for the quick fix! Smile

I tried it already and it works without any error.

Friendly greetings,

Ralph

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Geoff is correct on this.  This is actually an environment issue as this does actually work on Vista Ultimate (as this is actually what I run) as well as other OS's.  However, we have added the ability to get around this error by forcing the registry to save over on the CURRENT_USER instead of the LOCAL_MACHINE.  Just set this:

MicroFour.StrataFrame.Security.SecurityBasics.ForceCurrentUserOnRegistrySettings = True

A good place to set this would be in the AppMain.vb or program.cs file in either the InitApplication or SetDataSources methods.

Geoff Hirst
Geoff Hirst
StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
Hi,

My enthusiasm to paint MS for this one, is alas shortlived.

It would seem that an update to SF in June may well solve this issue.

'http://forum.strataframe.net/FindPost17255.aspx'

Hope this helps.

G.

Geoff Hirst
Geoff Hirst
StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
Guys,

This is REALLY interesting. My application has been out in the wild for about 4 months and I have never come across this issue. Until today. Now, does anyone have any details on whether Microsoft's 'patch Tuesday' occurred yesterday? If so, is there any possibility that something may have been changed by them, that causes this to happen?

thanks

G.

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Ralph.

Have a look at the link bellow. It might help you.

http://forum.strataframe.net/FindPost10345.aspx

Cheers.

Ralph Rutschmann
Ralph Rutschmann
StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 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