eXpandFramework / eXpand

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

Can't open win model editor in 19.2.601.0 (using model difference module option) #669

Closed vimarx closed 4 years ago

vimarx commented 4 years ago

The error occurred: Solution2.zip

Type:       IndexOutOfRangeException
Message:    Index was outside the bounds of the array.
Data:       0 entries
Stack trace:

at invoke(Object , Object[] ) at Fasterflect.MethodInfoExtensions.Call(MethodInfo methodInfo, Object obj, Object[] parameters) at Xpand.Persistent.Base.ModelAdapter.InterfaceBuilder.set_SkipAssemblyCleanup(Boolean value) at Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.GetMasterModelCore(Boolean recreate) at Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.GetMasterModel(Boolean recreate) at Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.OnCurrentObjectChanged() at DevExpress.ExpressApp.Editors.ViewItem.set_CurrentObject(Object value) at DevExpress.ExpressApp.ObjectView.InitializeItem(ViewItem item) at DevExpress.ExpressApp.DetailView.InitializeItem(ViewItem item) at DevExpress.ExpressApp.CompositeView.AddItem(ViewItem item) at DevExpress.ExpressApp.CompositeView.LoadModelCore() at DevExpress.ExpressApp.ObjectView.LoadModelCore() at DevExpress.ExpressApp.View.LoadModel() at DevExpress.ExpressApp.View.SetModel(IModelView model) at Xpand.ExpressApp.ViewFactory.CreateDetailView(XafApplication xafApplication, String viewId, IObjectSpace objectSpace, Object obj, Boolean isRoot, Boolean enableDelayedObjectLoading) at Xpand.ExpressApp.SystemModule.XpandSystemModule.ApplicationOnDetailViewCreating(Object sender, DetailViewCreatingEventArgs args) at DevExpress.ExpressApp.XafApplication.OnDetailViewCreating(DetailViewCreatingEventArgs args) at DevExpress.ExpressApp.XafApplication.CreateDetailView(IObjectSpace objectSpace, String detailViewID, Boolean isRoot, Object obj, Boolean isDelayedObjectLoading, IEnumerable objectsToPrefetch) at DevExpress.ExpressApp.XafApplication.CreateDetailView(IObjectSpace objectSpace, String detailViewID, Boolean isRoot, Object obj) at DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.ShowObjectCore(Object obj, ShowViewParameters showViewParameters, XafApplication application, View sourceView, IObjectSpace objectSpace, IEnumerable objectsToPrefetch) at DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.ProcessCurrentObject(SimpleActionExecuteEventArgs e) at DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.processCurrentObjectAction_OnExecute(Object sender, SimpleActionExecuteEventArgs e) at DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler.Invoke(Object sender, SimpleActionExecuteEventArgs e) at DevExpress.ExpressApp.Actions.SimpleAction.RaiseExecute(ActionBaseEventArgs eventArgs) at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs) InnerException is null

expand commented 4 years ago

We will try to answer all questions that do not require research within 24hr. To prioritize cases that require research we use the following labels in order. For all other issues the posting time is respected.

  1. โค Bronze Sponsor
    1. โค Sponsor
    2. โค Backer
    3. Installation
    4. ShowStopper
    5. Nuget
    6. Contribution
    7. BreakingChange
    8. ReproSample
    9. Deployment
    10. must-have

This case is prioritized.

rSeeFip commented 4 years ago

after upgrading from 19.2.503 to 19.2.601 the same issue by opening model out from application settings

Der Index war auรŸerhalb des Arraybereichs.

bei invoke(Object , Object[] ) bei Xpand.Persistent.Base.ModelAdapter.InterfaceBuilder.set_SkipAssemblyCleanup(Boolean value) bei Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.GetMasterModelCore(Boolean recreate) bei Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.GetMasterModel(Boolean recreate) bei Xpand.ExpressApp.ModelDifference.Win.PropertyEditors.ModelEditorPropertyEditor.OnCurrentObjectChanged() bei DevExpress.ExpressApp.Editors.ViewItem.set_CurrentObject(Object value) bei DevExpress.ExpressApp.ObjectView.InitializeItem(ViewItem item) bei DevExpress.ExpressApp.CompositeView.AddItem(ViewItem item) bei DevExpress.ExpressApp.CompositeView.LoadModelCore() bei DevExpress.ExpressApp.View.LoadModel() bei DevExpress.ExpressApp.View.SetModel(IModelView model) bei Xpand.ExpressApp.ViewFactory.CreateDetailView(XafApplication xafApplication, String viewId, IObjectSpace objectSpace, Object obj, Boolean isRoot, Boolean enableDelayedObjectLoading) bei Xpand.ExpressApp.SystemModule.XpandSystemModule.ApplicationOnDetailViewCreating(Object sender, DetailViewCreatingEventArgs args) bei DevExpress.ExpressApp.XafApplication.OnDetailViewCreating(DetailViewCreatingEventArgs args) bei DevExpress.ExpressApp.XafApplication.CreateDetailView(IObjectSpace objectSpace, String detailViewID, Boolean isRoot, Object obj, Boolean isDelayedObjectLoading, IEnumerable objectsToPrefetch) bei DevExpress.ExpressApp.XafApplication.CreateDetailView(IObjectSpace objectSpace, String detailViewID, Boolean isRoot, Object obj) bei DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.ShowObjectCore(Object obj, ShowViewParameters showViewParameters, XafApplication application, View sourceView, IObjectSpace objectSpace, IEnumerable objectsToPrefetch) bei DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.ProcessCurrentObject(SimpleActionExecuteEventArgs e) bei DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController.processCurrentObjectAction_OnExecute(Object sender, SimpleActionExecuteEventArgs e) bei DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler.Invoke(Object sender, SimpleActionExecuteEventArgs e) bei DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

vimarx commented 4 years ago

@apobekiaris any chance to workaround/solve this before next week?

apobekiaris commented 4 years ago

thnks for the reminder, hopefully we will have a build during weeend. Is high priority and already delayed.

expand commented 4 years ago

eXpand.lab release 19.2.601.1 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

Thanks a lot for your contribution.

vimarx commented 4 years ago

Hi, Now in 19.2.601.1 the model editor opens and works fine, but AFTER closing it, it raises this exception

13.02.20 17:01:46.328 Window closed: Gestion de Mutuales/Financieras - Application Settings 13.02.20 17:01:46.810 ================================================================================ The error occurred:

Type:       NullReferenceException
Message:    Object reference not set to an instance of an object.
Data:       0 entries
Stack trace:

at DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.get_View() at DevExpress.ExpressApp.Office.Win.OfficeDocumentManagerController.CheckOfficePropertyEditors(IViewHolder viewHolder) at DevExpress.ExpressApp.Office.Win.OfficeDocumentManagerController.View_DocumentDeactivated(Object sender, DocumentEventArgs e) at DevExpress.XtraBars.Docking2010.Views.DocumentEventHandler.Invoke(Object sender, DocumentEventArgs e) at DevExpress.XtraBars.Docking2010.Views.BaseView.RaiseDocumentDeactivated(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.OnDocumentDeactivated(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.SetActiveDocumentCore(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.ActivateDocument(Control control) at DevExpress.XtraBars.Docking2010.MDIClientManagementStrategy.OnMdiChildActivate(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnMdiChildActivate(EventArgs e) at DevExpress.XtraEditors.XtraForm.OnMdiChildActivate(EventArgs e) at System.Windows.Forms.Form.WmMdiActivate(Message& m) at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) InnerException is null

================================================================================ 13.02.20 17:01:49.059 ================================================================================ The error occurred:

Type:       NullReferenceException
Message:    Object reference not set to an instance of an object.
Data:       0 entries
Stack trace:

at DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.get_View() at DevExpress.ExpressApp.Office.Win.OfficeDocumentManagerController.CheckOfficePropertyEditors(IViewHolder viewHolder) at DevExpress.ExpressApp.Office.Win.OfficeDocumentManagerController.View_DocumentDeactivated(Object sender, DocumentEventArgs e) at DevExpress.XtraBars.Docking2010.Views.DocumentEventHandler.Invoke(Object sender, DocumentEventArgs e) at DevExpress.XtraBars.Docking2010.Views.BaseView.RaiseDocumentDeactivated(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.OnDocumentDeactivated(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.SetActiveDocumentCore(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.CheckActiveDocument(CollectionChangedEventArgs1 ea) at DevExpress.XtraBars.Docking2010.Views.BaseView.OnDocumentCollectionChanged(CollectionChangedEventArgs1 ea) at DevExpress.XtraBars.Docking2010.Base.CollectionChangedHandler1.Invoke(CollectionChangedEventArgs1 ea) at DevExpress.XtraBars.Docking2010.Base.BaseMutableList1.RaiseCollectionChanged(CollectionChangedEventArgs1 ea) at DevExpress.XtraBars.Docking2010.Base.BaseMutableListEx1.OnElementRemoved(T element) at DevExpress.XtraBars.Docking2010.Views.BaseDocumentCollection.OnElementRemoved(BaseDocument element) at DevExpress.XtraBars.Docking2010.Base.BaseMutableList1.Remove(T element) at DevExpress.XtraBars.Docking2010.Views.BaseViewController.RemoveDocumentFromView(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseViewController.RemoveDocument(Control control) at DevExpress.XtraBars.Docking2010.Views.BaseView.RemoveDocument(Control control) at DevExpress.XtraBars.Docking2010.DocumentManager.OnControlRemoved(Control control) at System.Windows.Forms.Control.OnControlRemoved(ControlEventArgs e) at System.Windows.Forms.Control.ControlCollection.Remove(Control value) at System.Windows.Forms.Control.Dispose(Boolean disposing) at System.Windows.Forms.Form.Dispose(Boolean disposing) at DevExpress.XtraEditors.XtraForm.Dispose(Boolean disposing) at DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.Dispose(Boolean disposing) at System.Windows.Forms.Form.WmClose(Message& m) at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg) at DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.WndProc(Message& msg) InnerException is null

================================================================================ 13.02.20 17:01:49.082 ================================================================================ The error occurred:

Type:       NullReferenceException
Message:    Object reference not set to an instance of an object.
Data:       0 entries
Stack trace:

at DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.get_View() at DevExpress.ExpressApp.Office.Win.OfficeDocumentManagerController.CheckOfficePropertyEditors(IViewHolder viewHolder) at DevExpress.ExpressApp.Office.Win.OfficeDocumentManagerController.View_DocumentDeactivated(Object sender, DocumentEventArgs e) at DevExpress.XtraBars.Docking2010.Views.DocumentEventHandler.Invoke(Object sender, DocumentEventArgs e) at DevExpress.XtraBars.Docking2010.Views.BaseView.RaiseDocumentDeactivated(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.OnDocumentDeactivated(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.SetActiveDocumentCore(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseView.CheckActiveDocument(CollectionChangedEventArgs1 ea) at DevExpress.XtraBars.Docking2010.Views.BaseView.OnDocumentCollectionChanged(CollectionChangedEventArgs1 ea) at DevExpress.XtraBars.Docking2010.Base.CollectionChangedHandler1.Invoke(CollectionChangedEventArgs1 ea) at DevExpress.XtraBars.Docking2010.Base.BaseMutableList1.RaiseCollectionChanged(CollectionChangedEventArgs1 ea) at DevExpress.XtraBars.Docking2010.Base.BaseMutableListEx1.OnElementRemoved(T element) at DevExpress.XtraBars.Docking2010.Views.BaseDocumentCollection.OnElementRemoved(BaseDocument element) at DevExpress.XtraBars.Docking2010.Base.BaseMutableList1.Remove(T element) at DevExpress.XtraBars.Docking2010.Views.BaseViewController.RemoveDocumentFromView(BaseDocument document) at DevExpress.XtraBars.Docking2010.Views.BaseViewController.RemoveDocument(Control control) at DevExpress.XtraBars.Docking2010.Views.BaseView.RemoveDocument(Control control) at DevExpress.XtraBars.Docking2010.DocumentManager.OnControlRemoved(Control control) at System.Windows.Forms.Control.OnControlRemoved(ControlEventArgs e) at System.Windows.Forms.Control.ControlCollection.Remove(Control value) at System.Windows.Forms.Control.Dispose(Boolean disposing) at System.Windows.Forms.Form.Dispose(Boolean disposing) at DevExpress.XtraEditors.XtraForm.Dispose(Boolean disposing) at DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.Dispose(Boolean disposing) at System.Windows.Forms.Form.WmClose(Message& m) at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg) at DevExpress.ExpressApp.Win.Templates.XtraFormTemplateBase.WndProc(Message& msg) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) InnerException is null

================================================================================ 13.02.20 17:01:50.551 Action 'SaveAndClose' done

apobekiaris commented 4 years ago

do u use the same sample? I failed to repro it. What I tried is open the MDO, modified and then SaveAndClose. Please provide exact repro steps or a screencast may also be in help

vimarx commented 4 years ago

Hi, attached sample and screencast. Please enable IsDelayedDetailviewDataloading in program.cs image

Solution9.zip delayeddetailview.zip

vimarx commented 4 years ago

IsDelayedDetailviewDataloading was disabled by mistake in solution9.zip, enable it and try

vimarx commented 4 years ago

Hi, anyone had a success editing web model in win app? I'm stuck with #674

vimarx commented 4 years ago

Hi, using 19.2.601.5 you can see in the attached log, that both model adapters are loaded twice image

and here is the repro screencast trytoeditmodel

and the complete log eXpressAppFramework.zip

vimarx commented 4 years ago

btw, the modeladapter....dll is still created in the web path, not in web\bin

apobekiaris commented 4 years ago

yes i see there is a version problem standalone packages are not upgraded in the release u tested. Pushing a new one.

expand commented 4 years ago

The DevExpress.XAF repository includes commits that relate to this task:

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.

If you do not use the Xpand.XAF.Modules directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.

Thanks a lot for your contribution.

expand commented 4 years ago

eXpand.lab release 19.2.601.6 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

Thanks a lot for your contribution.

apobekiaris commented 4 years ago

i tested 19.2.601.7 and assemblies are not in GAC anymore

expand commented 4 years ago

Issue is deprioritized as no Assignee found and scheduled for auto-close if no activity in the next 60 days. Thanks a lot for your contribution.

expand commented 4 years ago

eXpand.lab release 19.2.602.4 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

Thanks a lot for your contribution.

expand commented 4 years ago

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

.Thank you for your contribution.