StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Security applicationExpand / Collapse
Author
Message
Posted 09/28/2006 6:52:04 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 10/10/2006 2:02:37 PM
Posts: 19, Visits: 86
When using Role Based Security, how do I embed the Security Application into my own application?
Post #3148
Posted 09/28/2006 8:09:39 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
This is actually quite easy.  To call the security dialog within your application just do the following:

  1. Make sure that a reference to MicroFour StrataFrame Security.dll exists within your project
  2. To call the security application, add the following code in a menu item or button someplace:

Dim loDialog As New MicroFour.StrataFrame.Security.SecurityDialog()

loDialog.ShowDialog()

Post #3149
Posted 09/28/2006 3:43:50 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 10/10/2006 2:02:37 PM
Posts: 19, Visits: 86
I have incorporated this but when I click on the button I get the following exception.

LocalizationKeyNotFoundException
 The specified key [SFSTText - None] was not found within the localization database.
FileNotFoundException
 The file [Message_Languages.xml] could not be found.  The localization languages table could not be loaded.

Source     : MicroFour StrataFrame Base

Stack Trace:
   at MicroFour.StrataFrame.UI.Localization.LoadLanguageTable(Boolean IgnoreExceptions)
   at MicroFour.StrataFrame.UI.Localization.LoadXmlFile(Int32 LocaleID)
   at MicroFour.StrataFrame.UI.Localization.GetKeyRowFromXml(String Key)
   at MicroFour.StrataFrame.UI.Localization.RetrieveTextValue(String TextValueKey)
   at MicroFour.StrataFrame.Security.SecurityDialog..ctor(Int32 ProjectPK, ShowProjectPropertiesDeleg ShowProjectProperties, CreatePermissionEditor CreatePermEditor)
   at MicroFour.StrataFrame.Security.SecurityDialog..ctor()
   at EVDA.Form1.Button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\Jason\My Documents\Visual Studio 2005\Projects\EVDA\EVDA\Form1.vb:line 4
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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 #3181
Posted 09/29/2006 7:56:59 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 10/21/2008 9:20:58 AM
Posts: 2,685, Visits: 1,887
The localiztion text values are stored as embedded resource files within the MicroFour StrataFrame Security.dll assemly, but for some reason, the assembly is not extracting them from the resources when the assembly is loaded into the AppDomain.  I will let you know why that is happening when I figure it out.  Thanks.


www.bungie.net
Post #3193
« 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 4:25pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.219. 10 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.