RBS Error when Viewing Permissions
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



RBS Error when Viewing PermissionsExpand / Collapse
Author
Message
Posted 04/26/2008 9:33:27 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 2 days ago @ 11:15:03 AM
Posts: 14, Visits: 89
I'm getting an error when in the Security Editor. 

If you choose the top level Permissions and then select any permission from the right pane "All Permissions" view.  You get the error displayed below, I also got the same error running form the RBS Sample.

Exception
  Could not create permission editor.

Source     : MicroFour StrataFrame Security

Stack Trace:
   at MicroFour.StrataFrame.Security.SecurityDialog.CreatePermissionForm(Int32 ProjectPK, Int32 ItemPK, String Category, Boolean IsCopy)
   at MicroFour.StrataFrame.Security.SecurityDialog.EditPermission()
   at MicroFour.StrataFrame.Security.SecurityDialog.lvDetail_DoubleClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
   at System.Windows.Forms.ListView.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)

Post #15913
Posted 04/26/2008 11:56:00 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 3:05:53 PM
Posts: 552, Visits: 10,434
Hi Purnell.

You are probably trying to edit a permission at runtime, is that so?

If this is the case, permissions are not supposed to be edited at runtime, only at design time. This exception will probably be treated differently in the future.

Cheers.

Post #15915
Posted 04/27/2008 2:56:45 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 10:22:11 PM
Posts: 3,733, Visits: 3,928
Ivan is correct.  There are some options to prevent certain things from showing at run-time, but if you could provide more details as to how you generated this error it would be helpful.  Thanks.
Post #15930
Posted 04/29/2008 4:20:36 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 2 days ago @ 11:15:03 AM
Posts: 14, Visits: 89
Trent/Ivan

I was only trying to view the premission.  Trent I emailed a snap shot of the screen.   I even was able to recreate the error form the StrataFrame RBS sample.   

To recreate error, just click on the Permissions group in the left frame and click on any premission key in the right frame and you will get the  error.

Post #15999
Posted 04/29/2008 4:29:50 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 3:05:53 PM
Posts: 552, Visits: 10,434
To recreate error, just click on the Permissions group in the left frame and click on any premission key in the right frame and you will get the  error.

I have just run the sample over here to check it, and it does show the error, but only if I "double click" the permission, which is the action to Edit it. If I only click on it, it just gets selected. And as you already know, Permissions are not supposed to be edited at runtime.

Post #16000
Posted 04/29/2008 4:50:32 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 10:22:11 PM
Posts: 3,733, Visits: 3,928
It is just a bug...I will add it to the list to get fixed.  The double-click is still trying to execute the design-time code.
Post #16005
Posted 04/29/2008 4:58:21 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 10:22:11 PM
Posts: 3,733, Visits: 3,928
Simple fix...here is the fix for it.

  Post Attachments 
MicroFourStrataFrameSecurity.zip (4 views, 432.24 KB)
Post #16007
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 12:59am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.