﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Role Based Security  » RegistryKey: Access denied under Vista</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:11:22 GMT</lastBuildDate><ttl>20</ttl><item><title>RegistryKey: Access denied under Vista</title><link>http://forum.strataframe.net/FindPost18446.aspx</link><description>Hello all,&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;[codesnippet]UnauthorizedAccessException&lt;BR&gt;&amp;nbsp; Der Zugriff auf den Registrierungsschlüssel HKEY_LOCAL_MACHINE\Software\MicroFour\StrataFrameSecurity\SecurityDialog wurde verweigert.&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : mscorlib&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; bei Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)&lt;BR&gt;&amp;nbsp;&amp;nbsp; bei Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)&lt;BR&gt;&amp;nbsp;&amp;nbsp; bei Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; bei Microsoft.Win32.Registry.SetValue(String keyName, String valueName, Object value, RegistryValueKind valueKind)&lt;BR&gt;&amp;nbsp;&amp;nbsp; bei MicroFour.StrataFrame.Win32.RegistryRepository.WriteValue(String KeyPath, String ValueName, Int32 Value)&lt;BR&gt;&amp;nbsp;&amp;nbsp; bei MicroFour.StrataFrame.Win32.RegistryRepository.WriteValue(String ValueName, Int32 Value)&lt;BR&gt;&amp;nbsp;&amp;nbsp; bei MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.SaveSizeAndLocation()&lt;BR&gt;&amp;nbsp;&amp;nbsp; bei MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnFormClosing(FormClosingEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; bei System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)[/codesnippet]&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ralph&lt;BR&gt;</description><pubDate>Wed, 13 Aug 2008 10:29:04 GMT</pubDate><dc:creator>Ralph Rutschmann</dc:creator></item><item><title>RE: RegistryKey: Access denied under Vista</title><link>http://forum.strataframe.net/FindPost18472.aspx</link><description>Hello Trent,&lt;P&gt;thank you very much for the quick fix! :)&lt;/P&gt;&lt;P&gt;I tried it already and it works without any error.&lt;/P&gt;&lt;P&gt;Friendly greetings,&lt;/P&gt;&lt;P&gt;Ralph</description><pubDate>Wed, 13 Aug 2008 10:29:04 GMT</pubDate><dc:creator>Ralph Rutschmann</dc:creator></item><item><title>RE: RegistryKey: Access denied under Vista</title><link>http://forum.strataframe.net/FindPost18459.aspx</link><description>Geoff is correct on this.&amp;nbsp; 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.&amp;nbsp; 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.&amp;nbsp; Just set this:&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.Security.SecurityBasics.ForceCurrentUserOnRegistrySettings = True[/codesnippet]&lt;/P&gt;&lt;P&gt;A good place to set this would be in the AppMain.vb or program.cs file in either the InitApplication or SetDataSources methods.</description><pubDate>Wed, 13 Aug 2008 09:10:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: RegistryKey: Access denied under Vista</title><link>http://forum.strataframe.net/FindPost18451.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;My enthusiasm to paint MS for this one, is alas shortlived. &lt;/P&gt;&lt;P&gt;It would seem that an update to SF in June may well solve this issue.&lt;/P&gt;&lt;P&gt;'http://forum.strataframe.net/FindPost17255.aspx'&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;G.</description><pubDate>Wed, 13 Aug 2008 08:10:11 GMT</pubDate><dc:creator>Geoff Hirst</dc:creator></item><item><title>RE: RegistryKey: Access denied under Vista</title><link>http://forum.strataframe.net/FindPost18450.aspx</link><description>Guys, &lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;G.</description><pubDate>Wed, 13 Aug 2008 07:54:43 GMT</pubDate><dc:creator>Geoff Hirst</dc:creator></item><item><title>RE: RegistryKey: Access denied under Vista</title><link>http://forum.strataframe.net/FindPost18449.aspx</link><description>Hi Ralph.&lt;/P&gt;&lt;P&gt;Have a look at the link bellow. It might help you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost10345.aspx"&gt;http://forum.strataframe.net/FindPost10345.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers.</description><pubDate>Wed, 13 Aug 2008 07:14:22 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>