﻿<?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  » Getting an error when assignign permission to user</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 13:57:14 GMT</lastBuildDate><ttl>20</ttl><item><title>Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3582.aspx</link><description>Hya.&lt;/P&gt;&lt;P&gt;This is what I'm getting when I choose the Restriction from the dropdown control:&lt;/P&gt;&lt;P&gt;[code]NullReferenceException&lt;BR&gt;&amp;nbsp;Object reference not set to an instance of an object.&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : MicroFour StrataFrame Security&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Security.UserEditor.SaveData(TreeNode Node, SetDataPiece SetPiece)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Security.UserEditor.cboRestriction_SelectedValueChanged(Object sender, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ListControl.OnSelectedValueChanged(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ComboBox.OnSelectedValueChanged(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ComboBox.WmReflectCommand(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ComboBox.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;[/code]&lt;/P&gt;&lt;P&gt;Anything I should look at?</description><pubDate>Tue, 17 Oct 2006 10:28:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3659.aspx</link><description>Yes, you create the permissions through the editor at design-time and then you can assign them to users at runtime after you deploy the data with the DDT (or scripts, or whatever).</description><pubDate>Tue, 17 Oct 2006 10:28:28 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3658.aspx</link><description>Sorry ... :blush:&lt;/P&gt;&lt;P&gt;So that's the reason for the issue ... if someone extremely clever like me tries to assign a Permission without having inserted one first, the Exception is thrown. Thanks for not showing a "You moron, create a permission first" message. :D&lt;/P&gt;&lt;P&gt;So, I need to run the security from the Visual Studio, create everything and then use the DDT to import this tables and deploy to the app, is that it?&lt;/P&gt;&lt;P&gt;Thanks Ben, you guys will go straight to heaven.</description><pubDate>Tue, 17 Oct 2006 09:57:40 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3657.aspx</link><description>The reason you don't have the permission buttons is that you are opening the SecurityDialog at runtime... and end-users are not allowed to modify permissions at runtime because that's developer-only territory.&amp;nbsp; However, if you are opening the security editor from the Visual Studio menu, and you do not see the permission menu options listed, then this is a problem ;)</description><pubDate>Tue, 17 Oct 2006 08:54:59 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3655.aspx</link><description>&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=109204901-17102006&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Hi Ben.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=109204901-17102006&gt;&lt;FONT face=Arial color=#0000ff&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=109204901-17102006&gt;&lt;FONT face=Arial color=#0000ff&gt;I just realized something ...re&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=109204901-17102006&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;garding the error above, I just noticed I don't have the Permission buttons in the Security Toolbar! Nor the Permission options in the ContextMenu...&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description><pubDate>Mon, 16 Oct 2006 20:56:52 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3652.aspx</link><description>Hi Ben.&lt;/P&gt;&lt;P&gt;Do you think there is something I could try here?</description><pubDate>Mon, 16 Oct 2006 16:17:12 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3596.aspx</link><description>I'll see what I can do to replicate it.&amp;nbsp; Thanks, Ivan.</description><pubDate>Fri, 13 Oct 2006 16:41:23 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3595.aspx</link><description>Hi Ben.&lt;P&gt;Didn't do anything special ... created the user, then a role, then created a restriction. Went back to the user, edited him, permission tab, restriction dropdown, chose the one just created, and "boom".</description><pubDate>Fri, 13 Oct 2006 16:38:15 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Getting an error when assignign permission to user</title><link>http://forum.strataframe.net/FindPost3590.aspx</link><description>I can't make it fail on this end, Ivan.&lt;/P&gt;&lt;P&gt;Is there any other information you can give me?&amp;nbsp; Is this a new user, or one you're editing?&amp;nbsp; Are you adding the restriction set to a category, the top node, or an individual permission, etc...</description><pubDate>Fri, 13 Oct 2006 16:09:04 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>