This is what I'm getting when I choose the Restriction from the dropdown control:
NullReferenceException Object reference not set to an instance of an object.Source : MicroFour StrataFrame SecurityStack Trace: at MicroFour.StrataFrame.Security.UserEditor.SaveData(TreeNode Node, SetDataPiece SetPiece) at MicroFour.StrataFrame.Security.UserEditor.cboRestriction_SelectedValueChanged(Object sender, EventArgs e) at System.Windows.Forms.ListControl.OnSelectedValueChanged(EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedValueChanged(EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source : MicroFour StrataFrame Security
Stack Trace: at MicroFour.StrataFrame.Security.UserEditor.SaveData(TreeNode Node, SetDataPiece SetPiece) at MicroFour.StrataFrame.Security.UserEditor.cboRestriction_SelectedValueChanged(Object sender, EventArgs e) at System.Windows.Forms.ListControl.OnSelectedValueChanged(EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedValueChanged(EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Anything I should look at?
Is there any other information you can give me? Is this a new user, or one you're editing? Are you adding the restriction set to a category, the top node, or an individual permission, etc...
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".
Do you think there is something I could try here?
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.
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?
Thanks Ben, you guys will go straight to heaven.