﻿<?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  » Access to registry key denied with standard user level in windows</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 05:50:06 GMT</lastBuildDate><ttl>20</ttl><item><title>Access to registry key denied with standard user level in windows</title><link>http://forum.strataframe.net/FindPost12130.aspx</link><description>I've installed Role based security and everything works fine based on the following conditions.&lt;/P&gt;&lt;P&gt;While&amp;nbsp;logging into a domain and the windows user account is set as power-user or Administrator then everything is fine. If the user logging&amp;nbsp;is a &amp;nbsp;restricted user (Windows users group) then I get the following error:&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&amp;nbsp; Access to the registry key 'HKEY_LOCAL_MACHINE\Software\MicroFour\StrataFrame\Security\LoginForm' is denied.&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; at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Win32.Registry.SetValue(String keyName, String valueName, Object value, RegistryValueKind valueKind)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Win32.RegistryRepository.WriteValue(String ValueName, String Value)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at Primary_Reports.CustomLogin.cmdOk_Click(Object sender, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.OnClick(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Button.OnClick(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Button.PerformClick()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ContainerControl.ProcessDialogKey(Keys keyData)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.PreProcessMessage(Message&amp;amp; msg)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message&amp;amp; msg)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG&amp;amp; msg)&lt;/P&gt;&lt;P&gt;The only way at the moment to get everyone up and running is to change there access level in windows. Is this by design or a bug?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nader&lt;BR&gt;</description><pubDate>Tue, 23 Oct 2007 12:35:13 GMT</pubDate><dc:creator>Nadr S Rajab</dc:creator></item><item><title>RE: Access to registry key denied with standard user level in windows</title><link>http://forum.strataframe.net/FindPost12148.aspx</link><description>Thanks, the try catch seems the easiest solution.&lt;/P&gt;&lt;P&gt;Nadr</description><pubDate>Tue, 23 Oct 2007 12:35:13 GMT</pubDate><dc:creator>Nadr S Rajab</dc:creator></item><item><title>RE: Access to registry key denied with standard user level in windows</title><link>http://forum.strataframe.net/FindPost12144.aspx</link><description>Well, you could create a custom method to try writing to the registry within a try/catch... catch the security exception that is thrown and you'll know the user has reduced privileges.&amp;nbsp; Otherwise, you're probably down to using LDAP + System.DirectoryServices.ActiveDirectory or maybe some API calls.</description><pubDate>Tue, 23 Oct 2007 08:44:24 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Access to registry key denied with standard user level in windows</title><link>http://forum.strataframe.net/FindPost12141.aspx</link><description>How could I test for the users windows&amp;nbsp;security level(ie restricted, standard, Administrator)?. Is there any method in Statraframe or would I have to use the windows API&lt;/P&gt;&lt;P&gt;Nadr</description><pubDate>Mon, 22 Oct 2007 23:51:15 GMT</pubDate><dc:creator>Nadr S Rajab</dc:creator></item><item><title>RE: Access to registry key denied with standard user level in windows</title><link>http://forum.strataframe.net/FindPost12131.aspx</link><description>The login form is trying to save off the username that was entered.&amp;nbsp; The custom login form template does that for you, however, with restricted rights on the computer, you won't be able to do that.&amp;nbsp; So, you'll need to modify your CustomLogin class to remove the writing of the registry value from the cmdOK_Click event handler.</description><pubDate>Mon, 22 Oct 2007 09:10:24 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>