Steps to reproduce: 1. Create blank xaf windows project 2. To the main module add XafariManagedOperationsModule 3 Run the application 3. Upon application start you will get the An item with the 'ModelRuleRequiredField' key has already been added. error
Stack trace. The thread 0x2538 has exited with code 259 (0x103). The thread 0x23e4 has exited with code 259 (0x103). 23.03.15 07:31:04.685 ================================================================================ 23.03.15 07:31:04.686 Trace Log for BOTest.Win.vshost.exe is started 23.03.15 07:31:04.686 ================================================================================ 23.03.15 07:31:04.687 System Environment OS Version: Microsoft Windows NT 6.2.9200.0 .Net Framework Versions: v2.0.50727, v4.0.30319
23.03.15 07:31:04.960 SetupModules 23.03.15 07:31:04.988 Try to load XF Assembly... 23.03.15 07:31:04.997 XF source code file: file:///C:/Users/lstan_000/AppData/Local/Temp/XFAssembly.cs 23.03.15 07:31:05.416 XF Assembly 'C:\Users\lstan_000\AppData\Local\Temp\dlaaipqd.dll' is loaded successfully. 23.03.15 07:31:05.447 Customize TypesInfo 23.03.15 07:31:06.511 Check App Name Compatibility 23.03.15 07:31:06.512 Check stored module versions against the versions of the loaded modules 23.03.15 07:31:06.512 module 'SystemModule' (DevExpress.ExpressApp.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.512 module 'SystemWindowsFormsModule' (DevExpress.ExpressApp.Win.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.512 module 'ConditionalAppearanceModule' (DevExpress.ExpressApp.ConditionalAppearance.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.513 module 'WorkflowModule' (DevExpress.ExpressApp.Workflow.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.513 module 'XafariModule' (Xafari). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.513 module 'SecurityModule' (DevExpress.ExpressApp.Security.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.513 module 'ValidationModule' (DevExpress.ExpressApp.Validation.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.514 module 'XafariSecurityModule' (Xafari.Security). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.514 module 'XafariXFModule' (Xafari.XF). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.514 module 'XafariEditorsModule' (Xafari.Editors). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.514 module 'XafariBCModule' (Xafari.BC). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.515 module 'XafariBCModelModule' (Xafari.BC.Model). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.515 module 'XafariManagedOperationsModule' (Xafari.ManagedOperations). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.515 module 'XafariBusinessOperationsModule' (Xafari.BC.BusinessOperations). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.516 module 'BOTestModule' (BOTest.Module). Local version: 1.0.5560.11731, Version on DB: 1.0.5560.11710 23.03.15 07:31:06.516 DatabaseIsOld 23.03.15 07:31:06.530 -------------------------------------------------------------------------------- 23.03.15 07:31:06.531 Start logon process 23.03.15 07:31:06.531 -------------------------------------------------------------------------------- 23.03.15 07:31:06.532 Checking Compatibility 23.03.15 07:31:06.532 ConnectionString: Integrated Security=SSPI;Pooling=false;Data Source=(local);Initial Catalog=BOTest; 23.03.15 07:31:06.534 Check App Name Compatibility 23.03.15 07:31:06.535 Check stored module versions against the versions of the loaded modules 23.03.15 07:31:06.535 module 'SystemModule' (DevExpress.ExpressApp.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.535 module 'SystemWindowsFormsModule' (DevExpress.ExpressApp.Win.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.535 module 'ConditionalAppearanceModule' (DevExpress.ExpressApp.ConditionalAppearance.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.536 module 'WorkflowModule' (DevExpress.ExpressApp.Workflow.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.536 module 'XafariModule' (Xafari). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.536 module 'SecurityModule' (DevExpress.ExpressApp.Security.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.537 module 'ValidationModule' (DevExpress.ExpressApp.Validation.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.537 module 'XafariSecurityModule' (Xafari.Security). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.537 module 'XafariXFModule' (Xafari.XF). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.538 module 'XafariEditorsModule' (Xafari.Editors). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.538 module 'XafariBCModule' (Xafari.BC). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.538 module 'XafariBCModelModule' (Xafari.BC.Model). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.538 module 'XafariManagedOperationsModule' (Xafari.ManagedOperations). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.539 module 'XafariBusinessOperationsModule' (Xafari.BC.BusinessOperations). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.539 module 'BOTestModule' (BOTest.Module). Local version: 1.0.5560.11731, Version on DB: 1.0.5560.11710 23.03.15 07:31:06.539 DatabaseIsOld 23.03.15 07:31:06.540 -------------------------------------------------------------------------------- 23.03.15 07:31:06.540 UpdateDB 23.03.15 07:31:06.542 ConnectionString: Integrated Security=SSPI;Pooling=false;Data Source=(local);Initial Catalog=BOTest; 23.03.15 07:31:06.546 Check App Name Compatibility 23.03.15 07:31:06.546 Check stored module versions against the versions of the loaded modules 23.03.15 07:31:06.546 module 'SystemModule' (DevExpress.ExpressApp.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.546 module 'SystemWindowsFormsModule' (DevExpress.ExpressApp.Win.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.546 module 'ConditionalAppearanceModule' (DevExpress.ExpressApp.ConditionalAppearance.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.546 module 'WorkflowModule' (DevExpress.ExpressApp.Workflow.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.546 module 'XafariModule' (Xafari). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.546 module 'SecurityModule' (DevExpress.ExpressApp.Security.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.546 module 'ValidationModule' (DevExpress.ExpressApp.Validation.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.546 module 'XafariSecurityModule' (Xafari.Security). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.546 module 'XafariXFModule' (Xafari.XF). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.546 module 'XafariEditorsModule' (Xafari.Editors). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.546 module 'XafariBCModule' (Xafari.BC). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.546 module 'XafariBCModelModule' (Xafari.BC.Model). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.547 module 'XafariManagedOperationsModule' (Xafari.ManagedOperations). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.547 module 'XafariBusinessOperationsModule' (Xafari.BC.BusinessOperations). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.547 module 'BOTestModule' (BOTest.Module). Local version: 1.0.5560.11731, Version on DB: 1.0.5560.11710 23.03.15 07:31:06.547 DatabaseIsOld 23.03.15 07:31:06.567 Module: SystemModule. Old version: 14.2.5.0. New version: 14.2.5.0 23.03.15 07:31:06.567 Module: SystemWindowsFormsModule. Old version: 14.2.5.0. New version: 14.2.5.0 23.03.15 07:31:06.567 Module: ConditionalAppearanceModule. Old version: 14.2.5.0. New version: 14.2.5.0 23.03.15 07:31:06.567 Module: WorkflowModule. Old version: 14.2.5.0. New version: 14.2.5.0 23.03.15 07:31:06.567 Module: XafariModule. Old version: 14.2.507.0. New version: 14.2.507.0 23.03.15 07:31:06.567 Module: SecurityModule. Old version: 14.2.5.0. New version: 14.2.5.0 23.03.15 07:31:06.567 Module: ValidationModule. Old version: 14.2.5.0. New version: 14.2.5.0 23.03.15 07:31:06.567 Module: XafariSecurityModule. Old version: 14.2.507.0. New version: 14.2.507.0 23.03.15 07:31:06.567 Module: XafariXFModule. Old version: 14.2.507.0. New version: 14.2.507.0 23.03.15 07:31:06.567 Module: XafariEditorsModule. Old version: 14.2.507.0. New version: 14.2.507.0 23.03.15 07:31:06.567 Module: XafariBCModule. Old version: 14.2.507.0. New version: 14.2.507.0 23.03.15 07:31:06.567 Module: XafariBCModelModule. Old version: 14.2.507.0. New version: 14.2.507.0 23.03.15 07:31:06.567 Module: XafariManagedOperationsModule. Old version: 14.2.507.0. New version: 14.2.507.0 23.03.15 07:31:06.567 Module: XafariBusinessOperationsModule. Old version: 14.2.507.0. New version: 14.2.507.0 23.03.15 07:31:06.577 Module: BOTestModule. Old version: 1.0.5560.11710. New version: 1.0.5560.11731 23.03.15 07:31:06.577 Module: WorkflowWindowsFormsModule. Old version: 14.2.5.0. New version: 14.2.5.0 23.03.15 07:31:06.578 Module: BOTestWindowsFormsModule. Old version: 1.0.5560.11711. New version: 1.0.5560.11731 23.03.15 07:31:06.583 Check App Name Compatibility 23.03.15 07:31:06.583 Check stored module versions against the versions of the loaded modules 23.03.15 07:31:06.583 module 'SystemModule' (DevExpress.ExpressApp.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.583 module 'SystemWindowsFormsModule' (DevExpress.ExpressApp.Win.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.584 module 'ConditionalAppearanceModule' (DevExpress.ExpressApp.ConditionalAppearance.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.584 module 'WorkflowModule' (DevExpress.ExpressApp.Workflow.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.584 module 'XafariModule' (Xafari). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.585 module 'SecurityModule' (DevExpress.ExpressApp.Security.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.585 module 'ValidationModule' (DevExpress.ExpressApp.Validation.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.585 module 'XafariSecurityModule' (Xafari.Security). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.585 module 'XafariXFModule' (Xafari.XF). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.586 module 'XafariEditorsModule' (Xafari.Editors). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.586 module 'XafariBCModule' (Xafari.BC). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.586 module 'XafariBCModelModule' (Xafari.BC.Model). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.586 module 'XafariManagedOperationsModule' (Xafari.ManagedOperations). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.587 module 'XafariBusinessOperationsModule' (Xafari.BC.BusinessOperations). Local version: 14.2.507.0, Version on DB: 14.2.507.0 23.03.15 07:31:06.587 module 'BOTestModule' (BOTest.Module). Local version: 1.0.5560.11731, Version on DB: 1.0.5560.11731 23.03.15 07:31:06.587 module 'WorkflowWindowsFormsModule' (DevExpress.ExpressApp.Workflow.Win.v14.2). Local version: 14.2.5.0, Version on DB: 14.2.5.0 23.03.15 07:31:06.587 module 'BOTestWindowsFormsModule' (BOTest.Module.Win). Local version: 1.0.5560.11731, Version on DB: 1.0.5560.11731 23.03.15 07:31:06.589 -------------------------------------------------------------------------------- 23.03.15 07:31:06.590 Logon successful 23.03.15 07:31:06.593 -------------------------------------------------------------------------------- 23.03.15 07:31:06.593 Logon completed 23.03.15 07:31:06.593 startUpActions: 1 23.03.15 07:31:06.624 Generate default Model for Action containers 23.03.15 07:31:06.631 -------------------------------------------------------------------------------- 23.03.15 07:31:06.631 Initialize 'ShowNavigationItem' action items 23.03.15 07:31:06.666 -------------------------------------------------------------------------------- 23.03.15 07:31:06.667 Execute action 23.03.15 07:31:06.667 Type: DevExpress.ExpressApp.Actions.SingleChoiceAction 23.03.15 07:31:06.667 ID: ChooseSkin 23.03.15 07:31:06.667 Category: Appearance 23.03.15 07:31:06.668 Controller.Name: DevExpress.ExpressApp.Win.SystemModule.ChooseSkinController 23.03.15 07:31:06.668 SelectedItem: Visual Studio 2013 Blue 23.03.15 07:31:06.668 Action 'ChooseSkin' done 23.03.15 07:31:06.733 Resolve the 'Xafari.Images' assembly Не удалось найти Assembly:Xafari.Images A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll 23.03.15 07:31:06.745 The 'Xafari.Images' images resource assembly is not found 23.03.15 07:31:07.121 Resolve the 'DevExpress.ExpressApp.Win.v14.2.XmlSerializers, Version=14.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' assembly 23.03.15 07:31:07.124 Resolve the 'DevExpress.ExpressApp.Win.v14.2.XmlSerializers, Version=14.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' assembly Не удалось найти Assembly:DevExpress.ExpressApp.Win.v14.2.XmlSerializers, Version=14.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Не удалось найти Assembly:DevExpress.ExpressApp.Win.v14.2.XmlSerializers, Version=14.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll 23.03.15 07:31:07.200 -------------------------------------------------------------------------------- 23.03.15 07:31:07.200 Execute action 23.03.15 07:31:07.200 Type: DevExpress.ExpressApp.Actions.SingleChoiceAction 23.03.15 07:31:07.201 ID: ShowNavigationItem 23.03.15 07:31:07.201 Category: ViewsNavigation 23.03.15 07:31:07.201 Controller.Name: DevExpress.ExpressApp.SystemModule.ShowNavigationItemController 23.03.15 07:31:07.202 SelectedItem: Business operations 23.03.15 07:31:07.216 Project path: c:\users\lstan_000\documents\visual studio 2013\Projects\BOTest\BOTest.Win\bin\Debug\MainProject.xafml A first chance exception of type 'System.ArgumentException' occurred in DevExpress.ExpressApp.v14.2.dll A first chance exception of type 'System.ArgumentException' occurred in DevExpress.ExpressApp.v14.2.dll A first chance exception of type 'DevExpress.ExpressApp.Actions.ActionExecutionException' occurred in DevExpress.ExpressApp.v14.2.dll 23.03.15 07:31:07.550 ================================================================================ The error occurred:
Type: ArgumentException Message: An item with the 'ModelRuleRequiredField' key has already been added. Data: 0 entries Stack trace:
at DevExpress.ExpressApp.Model.Core.ModelApplicationCodeGenerator.CreateCurrentInfo(EasyClassInfo classInfo) at DevExpress.ExpressApp.Model.Core.ModelApplicationCodeGenerator.CreateAll(EasyClassInfo classInfo) at DevExpress.ExpressApp.Model.Core.EasyTypeGenerator.GetCode(EasyClassInfo[] classInfos, String[]& references) at DevExpress.ExpressApp.Model.Core.GlobalModelAssemblyRegistry.CompileModelAssembly(ICollection`1 customInterfacesToGenerate, ClassDescriptionCollection classDescriptions, CustomLogics customLogics, ModelInterfaceExtenders interfaceExtenders, String assemblyFileAbsolutePath) at DevExpress.ExpressApp.Model.Core.GlobalModelAssemblyRegistry.Get(ICollection`1 customInterfacesToGenerate, ClassDescriptionCollection classDescriptions, CustomLogics customLogics, ModelInterfaceExtenders interfaceExtenders, String assemblyFileAbsolutePath) at DevExpress.ExpressApp.Model.Core.ModelApplicationCreator.GetModelAssembly(ModelApplicationCreatorProperties properties) at DevExpress.ExpressApp.Model.Core.ModelApplicationCreator.CreateCreatorInfo(ModelApplicationCreator modelApplicationCreator) at DevExpress.ExpressApp.Model.Core.ModelApplicationCreator.get_CreatorInfo() at DevExpress.ExpressApp.Model.Core.ModelApplicationCreator.AddValidator[T](IModelNodeValidator`1 validator) at DevExpress.ExpressApp.SystemModule.SystemModule.AddModelNodeValidators(IModelNodeValidatorRegistrator validatorRegistrator) at DevExpress.ExpressApp.ApplicationModelManager.SetupModelApplicationCreator(ModelApplicationCreator creator, IEnumerable`1 modules, IEnumerable`1 aspects) at DevExpress.ExpressApp.ApplicationModelManager.Setup(ITypesInfo typesInfo, IEnumerable`1 boModelTypes, IEnumerable`1 modules, IEnumerable`1 controllers, IEnumerable`1 applicationLocalizerTypes, IEnumerable`1 applicationAspects, ModelStoreBase applicationModelDifferenceStore, String modelAssemblyFile) at Xafari.BC.BusinessModel..ctor(XafApplication xApp, String fileName) at Xafari.BC.Project..ctor(XafApplication xApp, String fileName) at Xafari.BC.Model.SafeThreadBusinessModelLoader.EnsureLoad() at Xafari.BC.Model.SafeThreadBusinessModelLoader.DelayedLoad() at Xafari.BC.Model.SafeThreadBusinessModelLoader.get_BusinessModelInstance() at Xafari.BC.Model.SafeThreadBusinessModelLoader.get_ProjectInstance() at Xafari.BC.BusinessModel.get_Instance() at Xafari.BC.BusinessModel.CheckProjectInstance() at Xafari.BC.BusinessOperations.BusinessOperationManager.get_Model() at Xafari.BC.BusinessOperations.BusinessOperationManager.GetRegularBusinessOperationNodes() at Xafari.BC.BusinessOperations.Hierarchy.BOHierarchyBuilder.BuildRegularBusinessOperationsHierarchy() at Xafari.BC.BusinessOperations.TreeList.TreeListBusinessOperationsCollectionSource.CreateCollection() at DevExpress.ExpressApp.CollectionSourceBase.ResetCollection() at DevExpress.ExpressApp.ListView.RefreshEditorDataSource() at DevExpress.ExpressApp.ListView.set_Editor(ListEditor value) at DevExpress.ExpressApp.ListView.LoadModelCore() at DevExpress.ExpressApp.View.LoadModel() at DevExpress.ExpressApp.View.SetModel(IModelView model) at DevExpress.ExpressApp.XafApplication.CreateListView(String listViewId, IModelListView modelListView, CollectionSourceBase collectionSource, Boolean isRoot) at DevExpress.ExpressApp.XafApplication.ProcessShortcut(ViewShortcut shortcut) at DevExpress.ExpressApp.SystemModule.ShowNavigationItemController.ShowNavigationItemCore(SingleChoiceActionExecuteEventArgs args) at DevExpress.ExpressApp.SystemModule.ShowNavigationItemController.ShowNavigationItem(SingleChoiceActionExecuteEventArgs args) at DevExpress.ExpressApp.SystemModule.ShowNavigationItemController.showNavigationItemAction_OnExecute(Object sender, SingleChoiceActionExecuteEventArgs args) at DevExpress.ExpressApp.Actions.SingleChoiceAction.RaiseExecute(ActionBaseEventArgs eventArgs) at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs) InnerException is null