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

InvalidOperationException WarmUpApplication Backend Web API Service #967

Closed TheGermanNiko closed 1 year ago

TheGermanNiko commented 1 year ago

Hi we recently startet upgrading our Application to net6, as a part of it i tried to include the Web API from DevExpress to it. Everytime i try to start the Web API it throws an Exception.

System.InvalidOperationException: Exception occurs while initializing the 'Xpand.XAF.Modules.ModelMapper.ModelMapperModule' module: DevExpress.ExpressApp.AspNetCore.WebApi.Core.Internal.WarmUpApplication.

I created a simple Demo Project containing all refrences as they are used in our Application. Any ideas what causes that exception?

𝗧𝗼 𝗥𝗲𝗽𝗿𝗼𝗱𝘂𝗰𝗲

Create the Application and attempt to start the Web API.


System.InvalidOperationException: Exception occurs while initializing the 'Xpand.XAF.Modules.ModelMapper.ModelMapperModule' module: DevExpress.ExpressApp.AspNetCore.WebApi.Core.Internal.WarmUpApplication ---> System.NotImplementedException: DevExpress.ExpressApp.AspNetCore.WebApi.Core.Internal.WarmUpApplication at Xpand.Extensions.XAF.XafApplicationExtensions.XafApplicationExtensions.GetPlatform(XafApplication application) at Xpand.Extensions.XAF.XafApplicationExtensions.XafApplicationExtensions.GetPlatform(IEnumerable`1 moduleBases) at Xpand.XAF.Modules.ModelMapper.Services.ModelExtendingService.ConnectExtendingService(ApplicationModulesManager applicationModulesManager) at Xpand.XAF.Modules.ModelMapper.ModelMapperModule.Setup(ApplicationModulesManager moduleManager) at Xpand.XAF.Modules.Reactive.ReactiveModuleBase.SetupModules(ApplicationModulesManager applicationModulesManager) --- End of inner exception stack trace ---


Attached the Demo Project DXApplication2.zip

apobekiaris commented 1 year ago

I did not test your sample the cause I see you use ModelMapperModule which does not support the Blazor or WebAPI projects

TheGermanNiko commented 1 year ago

I see, thank you for the information.