Chris Diesel
|
|
Group: StrataFrame Users
Posts: 74,
Visits: 300
|
Great, that did it! Thanks for the help!
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Nope, sorry, Localization is in the UI namespace: MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(typeof(MicroFour.StrataFrame.Security.SessionLock).Assembly, "MicroFour.StrataFrame.Security.Messages_1033.XML");
|
|
|
Chris Diesel
|
|
Group: StrataFrame Users
Posts: 74,
Visits: 300
|
Great! I'm almost there, but I'm getting the below message when I put that line in: 'Localization' does not exist in the namespace 'MicroFour.StataFrame.Messaging' Do I need to reference another assembly?
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Yes, that's because none of the localization files have been loaded. You can manually load the files for the MicroFour StrataFrame Security assembly like this: MicroFour.StrataFrame.Messaging.Localization.RegisterEmbeddedXmlFile(typeof(MicroFour.StrataFrame.Security.SessionLock).Assembly, "MicroFour.StrataFrame.Security.Messages_1033.XML");
|
|
|
Chris Diesel
|
|
Group: StrataFrame Users
Posts: 74,
Visits: 300
|
I now get the below message going into the SecurityDialog. Is this releated to setting: StrataFrameAppLication.IgnoreLoadLocalization = true; LocalizationKeyNotFoundException The specified key [SFSTText - None] was not found within the localization database. KeyNotFoundException The message key [SFSTText - None] could not be found in the localization data. Source : MicroFour StrataFrame Base Stack Trace: at MicroFour.StrataFrame.UI.Localization.ThrowKeyNotFoundException(String Key) 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, Boolean ShowPermissions, Boolean ShowRestrictionSets) at MicroFour.StrataFrame.Security.SecurityDialog..ctor() at IwSystemsCore.frmIwSystemsMain.action_UserSetup() in c:\VssProjs\IwSystems\Development\IwApplications\IwSystemsMain\IwSystemsCore\SharedCore\frmIwSystemsMain.cs:line 361 at IwSystemsCore.frmIwSystemsMain.dxBarMgr_ItemClick(Object sender, ItemClickEventArgs e) in c:\VssProjs\IwSystems\Development\IwApplications\IwSystemsMain\IwSystemsCore\SharedCore\frmIwSystemsMain.cs:line 831 at DevExpress.XtraBars.BarManager.RaiseItemClick(ItemClickEventArgs e) at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link) at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link) at DevExpress.XtraBars.BarButtonItem.OnClick(BarItemLink link) at DevExpress.XtraBars.BarItemLink.OnLinkClick() at DevExpress.XtraBars.BarButtonItemLink.OnLinkClick() at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs) at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link) at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link) at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at DevExpress.XtraBars.Controls.CustomControl.WndProc(Message& msg) at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m) at System.Windows.Forms.Nativewindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication()
|
|
|
Chris Diesel
|
|
Group: StrataFrame Users
Posts: 74,
Visits: 300
|
I'll go with option 1 for now.
Thanks!
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
That actually makes sense that "GeneratedCode" would be a dynamic assembly. Looks like there are 2 ways to fix this: 1) If you're not using localization, set StrataFrameApplication.IgnoreLoadLocalization = true; before you call StrataFrameApplication.Run() and the whole process will be skipped. 2) If you need localization, you'll need to change the second If test in the StrataFrameApplication.LoadLocalizationFromAssembly() method to have a second OrElse like this: If TypeOf LoadedAssembly Is System.Reflection.Emit.AssemblyBuilder OrElse LoadedAssembly.IsDynamic Then This can only be done if you're building in 4.0 because the Assembly.IsDynamic properti does not exist in 2.0. One of those should get you fixed.
|
|
|
Chris Diesel
|
|
Group: StrataFrame Users
Posts: 74,
Visits: 300
|
Not sure if this is right...
LoadedAssembly is showing: {Microsoft.GeneratedCode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null}
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Yeah, sorry, it's looping through the assemblies, right? What assembly is it trying to call GetManifestResourceNames on?
|
|
|
Chris Diesel
|
|
Group: StrataFrame Users
Posts: 74,
Visits: 300
|
In strataframeapplication.vb erroring on this line...'-- Check the manifests for the xml files and register them if possibleFor Each lcFile As String In LoadedAssembly.GetManifestResourceNames()
|
|
|