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

Cannot start 19.2.300.9 win app #609

Closed vimarx closed 4 years ago

vimarx commented 4 years ago

with every win solution I tried Exception while starting :

27.10.19 23:21:19.313 Customize TypesInfo Solutionenum.Win.exe Error: 0 : 27.10.19 23:21:33.107 ================================================================================ The error occurred:

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

en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) en System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) en DevExpress.ExpressApp.Win.WinApplication.SetupCore(String applicationName, IList`1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) en DevExpress.ExpressApp.XafApplication.Setup() en Solutionenum.Win.Program.Main(String[] arguments) en C:\tfs\Varios\Solutionenum.Win\Program.vb:lรญnea 48

InnerException:

        Type:       CompilerErrorException
        Message:    Cannot compile the generated code. Please inspect the generated code via this exception's SourceCode property. The following errors occurred: 

(29853, 14): 'ModelDevExpressXtraEditors_TileItemViewInfo' no implementa el miembro de interfaz 'IModelDevExpressXtraEditors_TileItemViewInfo.Layers'. 'DevExpress.ExpressApp.Model.Core.ModelNode.Layers' no puede implementar un miembro de interfaz porque no es pรบblico.

        Data:       0 entries
        Stack trace:

en DevExpress.ExpressApp.Utils.CodeGeneration.CSCodeCompiler.RaiseCompilerException(String sourceCode, CompilerResults compilerResults) en Compile_Patch1(CSCodeCompiler sourceCode, String references, String[] assemblyFile, String ) en DevExpress.ExpressApp.Model.Core.GlobalModelAssemblyRegistry.CompileModelAssembly(ICollection1 customInterfacesToGenerate, ClassDescriptionCollection classDescriptions, CustomLogics customLogics, ModelInterfaceExtenders interfaceExtenders, String assemblyFileAbsolutePath) en DevExpress.ExpressApp.Model.Core.GlobalModelAssemblyRegistry.Get(ICollection1 customInterfacesToGenerate, ClassDescriptionCollection classDescriptions, CustomLogics customLogics, ModelInterfaceExtenders interfaceExtenders, String assemblyFileAbsolutePath) en DevExpress.ExpressApp.Model.Core.ModelApplicationCreator.GetModelAssembly(ModelApplicationCreatorProperties properties) en DevExpress.ExpressApp.Model.Core.ModelApplicationCreator.CreateCreatorInfo(ModelApplicationCreator modelApplicationCreator) en DevExpress.ExpressApp.Model.Core.ModelApplicationCreator.get_CreatorInfo() en DevExpress.ExpressApp.Model.Core.ModelApplicationCreator.AddValidator[T](IModelNodeValidator1 validator) en DevExpress.ExpressApp.SystemModule.SystemModule.AddModelNodeValidators(IModelNodeValidatorRegistrator validatorRegistrator) en DevExpress.ExpressApp.ApplicationModelManager.SetupModelApplicationCreator(ModelApplicationCreator creator, IEnumerable1 modules, IEnumerable1 aspects) en DevExpress.ExpressApp.ApplicationModelManager.Setup(ITypesInfo typesInfo, IEnumerable1 boModelTypes, IEnumerable1 modules, IEnumerable1 controllers, IEnumerable1 applicationLocalizerTypes, IEnumerable1 applicationAspects, ModelStoreBase applicationModelDifferenceStore, String modelAssemblyFile) en DevExpress.ExpressApp.XafApplication.CreateModelManager(IEnumerable1 boModelTypes) en DevExpress.ExpressApp.Win.WinApplication.CreateModelManager(IEnumerable1 boModelTypes) en DevExpress.ExpressApp.XafApplication.Setup(ExpressApplicationSetupParameters parameters) en DevExpress.ExpressApp.XafApplication.SetupCore(String applicationName, IList1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) en DevExpress.ExpressApp.Win.WinApplication.<>n__0(String applicationName, IList1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) en DevExpress.ExpressApp.Win.WinApplication.<>c__DisplayClass77_0.b__0() en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute() InnerException is null

apobekiaris commented 4 years ago

Looks like a caching issue, did u try an empty solution?

apobekiaris commented 4 years ago

outdated model assembly is what I meant I guess with some system clean it will work

vimarx commented 4 years ago

deleted bin/obj and temp with no luck

vimarx commented 4 years ago

also the "add xpand " ,show empty list 2019-10-27_23-51-11

vimarx commented 4 years ago

sample solution Varios.zip

krombipils commented 4 years ago

Same issue here with 19.2.300.9. I also cleaned up everything before.

rSeeFip commented 4 years ago

Same issue here with 19.2.300.9 i cleaned up and not found some similar item in model.xafml

krombipils commented 4 years ago

As I quick workaround I added this to my win module: TypeMappingService.ReservedPropertyTypes.Add(typeof(TileItemViewInfo));

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.

rSeeFip commented 4 years ago

I've same issue with Modelmapper 1.1.58.4 from nuget labs.

Unable to create an instance of the "ModelApplicationCreatorInfo" type. Reason: "Die Datei oder Assembly "DevExpress.ExpressApp.v19.1, Version=19.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" oder eine Abhรคngigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden."

Of course,because i have no 19.1 on system

the type ModelApplicationCreatorInfo is ModelApplicationCreatorInfoBase in 19.2 ExpressApp

rSeeFip commented 4 years ago

with 19.2.300.11 application starts without workaround but model editor in Win show issue:

Type: ArgumentNullException Message: Der Wert darf nicht NULL sein. Parametername: designerHost.RootComponent Data: 0 entries Stack trace:

bei DevExpress.ExpressApp.Design.ModelEditor.ModelLoader.GetComponentFromDesigner[ComponentType](ProjectItem projectItem, ITypesInfo typesInfo) bei DevExpress.ExpressApp.Design.ModelEditor.ModelLoader.GetXafApplicationByDesigner(Project project) bei DevExpress.ExpressApp.Design.ModelEditor.ModelLoader.LoadModel(ITypeDiscoveryService typeDiscoveryService, ITypeResolutionService typeResolutionService, String targetDiffFileName, IDisposable& obj) bei DevExpress.ExpressApp.Design.ModelEditor.EditorPane.CreateModelEditorController() bei DevExpress.ExpressApp.Design.ModelEditor.EditorPane.PrivateInit(String fileName, ProjectItem currentProjectItem, IVsHierarchy pvHier) InnerException is null

fresh build bin,obj was cleared.

ModelEditor shows Model in Module , but not in Module.Win or Win

apobekiaris commented 4 years ago

can u post a sample? this stack says nothing

rSeeFip commented 4 years ago

i've tried since 300.9 but by creation of new Expand Project i get empty module list and after closing this empty list VS crash

rSeeFip commented 4 years ago

issue from Visual studio image

apobekiaris commented 4 years ago

did u try to run VS as admin?

rSeeFip commented 4 years ago

only as admin

expand commented 4 years ago

eXpand.lab release 19.2.300.12 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.