eXpand icon indicating copy to clipboard operation
eXpand copied to clipboard

World Creator sample request

Open Johnka2 opened this issue 2 years ago • 15 comments

Is there any sample on world creator. i have looked at existing documentation and only functionality is demonstrated but no info on how to set it up and existing demos are too old to run on current version.

using a sample from old expand demo "WorldCreatorTester.Win" v18.2.7 i get this error after upgrade to 21.2.6

Exception occurs while initializing the 'Xpand.ExpressApp.WorldCreator.WorldCreatorModule' module: Cannot handle the "Xpand.Persistent.BaseImpl.PersistentMetaData.PersistentClassesModuleInfo" type. To address this error, add an appropriate Object Space to the AdditionalObjectSpaces collection (see http://docs.devexpress.com/eXpressAppFramework/DevExpress.ExpressApp.CompositeObjectSpace.AdditionalObjectSpaces).

at Xpand.XAF.Modules.Reactive.ReactiveModuleBase.SetupModules(ApplicationModulesManager applicationModulesManager) at Xpand.XAF.Modules.Reactive.ReactiveModuleBase.SetupModulesPatch(ApplicationModulesManager __instance) at DevExpress.ExpressApp.ApplicationModulesManager.SetupModules_Patch1(ApplicationModulesManager this) at DevExpress.ExpressApp.ApplicationModulesManager.LoadCore(ITypesInfo typesInfo) at DevExpress.ExpressApp.XafApplication.SetupCore(String applicationName, IList1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) at DevExpress.ExpressApp.Win.WinApplication.<>n__0(String applicationName, IList1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) at DevExpress.ExpressApp.Win.WinApplication.<>c__DisplayClass78_0.<SetupCore>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()

is there any sample from current versions

Johnka2 avatar Mar 11 '22 18:03 Johnka2

only packages from the xaf.expandframework.com are tested on each build, so no I do not have a sample but this does not look like an error. did u follow the suggestion?

apobekiaris avatar Mar 12 '22 02:03 apobekiaris

yes followed the suggestion. but application does not reach that far. this happens at startup

Johnka2 avatar Mar 12 '22 08:03 Johnka2

post your sample using nugets and latest version please

apobekiaris avatar Mar 12 '22 08:03 apobekiaris

wc.zip

Johnka2 avatar Mar 12 '22 09:03 Johnka2

this is the wc demo upgraded to 21,2.6

Johnka2 avatar Mar 12 '22 09:03 Johnka2

i have checked this and it works with dx 19.2.7 something changed in dx 21.2 that breaks it

Johnka2 avatar Mar 12 '22 17:03 Johnka2

WC is like u run a 2nd Xaf app b4 the main app Xaf introodcued this exception as it seems in between need time to patch it. If you have the time to do it I can review your PR

apobekiaris avatar Mar 13 '22 02:03 apobekiaris

you can register PersistentClassesModuleInfo inside your module constructor with the line below:

WorldCreatorTypeInfoSource.Instance.ForceRegisterEntity(typeof(Xpand.Persistent.BaseImpl.PersistentMetaData.PersistentClassesModuleInfo));

Siratigui avatar Mar 23 '22 07:03 Siratigui

what this means? is it kind of fix ?

apobekiaris avatar Mar 23 '22 12:03 apobekiaris

yes we faced the same error while ago.

Siratigui avatar Mar 23 '22 13:03 Siratigui

Hi,

Do someone successfully started worldcreator? We have same error as Johnka2 with 21.2.601 version. Sirarigui suggestions does not help also.

arnzuk avatar Apr 21 '22 11:04 arnzuk

Hi, apobekiaris,

Are you going to fix worldcreator? It does not work with 21.2 version

arnzuk avatar Jul 21 '22 10:07 arnzuk

PR are totally accepted however I cannot spend resources, to investigate possible patches unless there is a sponsorishp for the task.

apobekiaris avatar Jul 21 '22 11:07 apobekiaris

according to changes in #940 WC should be functional now

apobekiaris avatar Jul 23 '22 10:07 apobekiaris

maybe this can also be included in the actuall WC module and not in your project mdules? If can someone test and confirm happy to add this line as well.

WorldCreatorTypeInfoSource.Instance.ForceRegisterEntity(typeof(Xpand.Persistent.BaseImpl.PersistentMetaData.PersistentClassesModuleInfo));

what I mean add in WorldCreatorModule build test and report back

WorldCreatorTypeInfoSource.Instance.ForceRegisterEntity(AppDomain.CurrentDomain.GetAssemblyType("Xpand.Persistent.BaseImpl.PersistentMetaData.PersistentClassesModuleInfo"));

apobekiaris avatar Jul 23 '22 10:07 apobekiaris

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

.Thank you for your contribution.

expand avatar Jan 13 '24 21:01 expand