Invoked member is not supported in a dynamic assembly


Author
Message
Chris Diesel
Chris Diesel
StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)
Group: StrataFrame Users
Posts: 74, Visits: 300
Trying to move from .Net 3.5 to 4.0 and I'm getting "The invoked member is not supported in a dynamic assembly." on this line:

StrataFrameApplication.RunApplication();

Any ideas???
Replies
Chris Diesel
Chris Diesel
StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)StrataFrame User (184 reputation)
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()
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
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");
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Chris Diesel - 13 Years Ago
StrataFrame Team - 13 Years Ago
             Yes.
Chris Diesel - 13 Years Ago
StrataFrame Team - 13 Years Ago
                     Saw that ealier and tried it again but doesn't help....
Chris Diesel - 13 Years Ago
                         Can you build SF in debug mode and break in the...
StrataFrame Team - 13 Years Ago
                             In strataframeapplication.vb erroring on this line... '--...
Chris Diesel - 13 Years Ago
                                 Yeah, sorry, it's looping through the assemblies, right? What assembly...
StrataFrame Team - 13 Years Ago
                                     Not sure if this is right... LoadedAssembly is showing:...
Chris Diesel - 13 Years Ago
                                         That actually makes sense that "GeneratedCode" would be a dynamic...
StrataFrame Team - 13 Years Ago
                                             I'll go with option 1 for now. Thanks!
Chris Diesel - 13 Years Ago
Chris Diesel - 13 Years Ago
StrataFrame Team - 13 Years Ago
Chris Diesel - 13 Years Ago
StrataFrame Team - 13 Years Ago
Chris Diesel - 13 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search