eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
222 stars 115 forks source link

Exception while trying to open model editor in 22.1.302 #939

Closed vimarx closed 9 months ago

vimarx commented 2 years ago

Excepciรณn producida: 'System.MissingFieldException' en Fasterflect.dll 15.07.22 14:20:19.451 ================================================================================ The error occurred:

Type:       AggregateException
Message:    Se han producido uno o varios errores.
Data:       0 entries
Stack trace:

en Xpand.Utils.Helpers.Retry.Do[T](Func1 action, TimeSpan retryInterval, Int32 retryCount) en Xpand.Utils.Helpers.Retry.Do(Action action, TimeSpan retryInterval, Int32 retryCount) en Xpand.Persistent.Base.ModelDifference.ModelLoader.GetMasterModel(Boolean tryToUseCurrentTypesInfo, Action1 action) en Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.GetMasterModelCore(Boolean recreate) en Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.GetMasterModel(Boolean recreate) en Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.OnCurrentObjectChanged() en DevExpress.ExpressApp.Editors.ViewItem.set_CurrentObject(Object value) en DevExpress.ExpressApp.ObjectView.InitializeItem(ViewItem item) en DevExpress.ExpressApp.CompositeView.AddItem(ViewItem item) en DevExpress.ExpressApp.CompositeView.LoadModelCore() en DevExpress.ExpressApp.View.LoadModel() en DevExpress.ExpressApp.View.SetModel(IModelView model) en Xpand.ExpressApp.ViewFactory.CreateDetailView(XafApplication xafApplication, String viewId, IObjectSpace objectSpace, Object obj, Boolean isRoot, Boolean enableDelayedObjectLoading) en Xpand.ExpressApp.SystemModule.XpandSystemModule.ApplicationOnDetailViewCreating(Object sender, DetailViewCreatingEventArgs args) en System.EventHandler`1.Invoke(Object sender, TEventArgs e) en DevExpress.ExpressApp.XafApplication.OnDetailViewCreating(DetailViewCreatingEventArgs args) en DevExpress.ExpressApp.XafApplication.PrepareDetailViewCreatingEventArgs(IObjectSpace objectSpace, String detailViewID, Boolean isRoot, Object obj, Boolean isDelayedObjectLoading) en DevExpress.ExpressApp.XafApplication.CreateDetailViewCore(IObjectSpace objectSpace, String detailViewID, Boolean isRoot, Object obj, Type objectType, Object objectKey, Boolean isDelayedObjectLoading, IEnumerable objectsToPrefetch) en DevExpress.ExpressApp.XafApplication.CreateDetailView(IObjectSpace objectSpace, String detailViewID, Boolean isRoot, Object obj, Boolean isDelayedObjectLoading, IEnumerable objectsToPrefetch) en DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.ShowObjectCore(Object obj, ShowViewParameters showViewParameters, XafApplication application, View sourceView, IObjectSpace objectSpace, IEnumerable objectsToPrefetch) en DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.ProcessCurrentObject(SimpleActionExecuteEventArgs e) en DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.processCurrentObjectAction_OnExecute(Object sender, SimpleActionExecuteEventArgs e) en DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

InnerException:

        Type:       MissingFieldException
        Message:    No match for field with name objectSpaceProviders and flags Instance | NonPublic | Public | Static on type F.Win.FWindowsFormsApplication.
        Data:       0 entries
        Stack trace:

en Fasterflect.Emitter.LookupUtils.GetMember(CallInfo callInfo) en Fasterflect.Emitter.MemberGetEmitter.CreateDelegate() en Fasterflect.Emitter.BaseEmitter.GetDelegate() en Fasterflect.FieldExtensions.DelegateForGetFieldValue(Type type, String name, Flags bindingFlags) en Fasterflect.FieldExtensions.GetFieldValue(Object obj, String name) en Xpand.Persistent.Base.General.ApplicationBuilder.Build() en Xpand.Persistent.Base.ModelDifference.ModelLoader.<>cDisplayClass12_0.b0() en Xpand.Utils.Helpers.Retry.<>cDisplayClass0_0.b0() en Xpand.Utils.Helpers.Retry.Do[T](Func`1 action, TimeSpan retryInterval, Int32 retryCount) InnerException is null

================================================================================

apobekiaris commented 2 years ago

it looks like it is about ModelDifference package, can you test against an empty solution having installed only this package and upload your sample here. It will for sure speed up case resolution

Siratigui commented 2 years ago

same issue here #940

apobekiaris commented 2 years ago

same reply.

it looks like it is about ModelDifference package, can you test against an empty solution having installed only this package and upload your sample here. It will for sure speed up case resolution

Siratigui commented 2 years ago

I wrote some suggestions here #940 you can have a look

expand commented 9 months ago

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.