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

World Creator sample request #915

Closed Johnka2 closed 9 months ago

Johnka2 commented 2 years ago

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.b0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()

is there any sample from current versions

apobekiaris commented 2 years ago

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?

Johnka2 commented 2 years ago

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

apobekiaris commented 2 years ago

post your sample using nugets and latest version please

Johnka2 commented 2 years ago

wc.zip

Johnka2 commented 2 years ago

this is the wc demo upgraded to 21,2.6

Johnka2 commented 2 years ago

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

apobekiaris commented 2 years ago

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

Siratigui commented 2 years ago

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

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

apobekiaris commented 2 years ago

what this means? is it kind of fix ?

Siratigui commented 2 years ago

yes we faced the same error while ago.

arnzuk commented 2 years ago

Hi,

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

arnzuk commented 2 years ago

Hi, apobekiaris,

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

apobekiaris commented 2 years ago

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

apobekiaris commented 2 years ago

according to changes in #940 WC should be functional now

apobekiaris commented 2 years ago

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"));
expand commented 9 months ago

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

.Thank you for your contribution.