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

Xpand 4.222.0 and DX 22.2.4 crashes on startup #982

Closed pjcunningham closed 9 months ago

pjcunningham commented 1 year ago

𝗗𝗲𝘀𝗰𝗿𝗶𝗯𝗲 𝘁𝗵𝗲 𝗯𝘂𝗴 Running a clean XAF Blazor project on Windows results in the following error:

The error occurred:

    Type:       ArgumentNullException
    Message:    Value cannot be null. (Parameter 'context')
    Data:       0 entries
    Stack trace:

   at System.Reactive.Linq.Observable.ObserveOn[TSource](IObservable`1 source, SynchronizationContext context) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable.Concurrency.cs:line 62
   at Xpand.XAF.Modules.Reactive.Services.XafApplicationRxExtensions.WhenWindowCreated(XafApplication application, Boolean isMain, Boolean emitIfMainExists)
   at Xpand.XAF.Modules.Reactive.Services.XafApplicationRxExtensions.WhenSynchronizationContext(XafApplication application)
   at Xpand.XAF.Modules.Reactive.Services.ShowMessageExtensions.ShowMessages(XafApplication application)
   at Xpand.XAF.Modules.Reactive.RxApp.Connect(XafApplication application)
   at Xpand.XAF.Modules.Reactive.RxApp.<>c__DisplayClass12_0.<Connect>b__0(XafApplication application)
   at Xpand.XAF.Modules.Reactive.Services.ApplicationModulesManagerService.<>c__DisplayClass2_1`1.<WhenApplication>b__2()
   at System.Reactive.Linq.ObservableImpl.Defer`1._.Run() in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Defer.cs:line 37
    InnerException is null

𝗧𝗼 𝗥𝗲𝗽𝗿𝗼𝗱𝘂𝗰𝗲

  1. Create an XAF project using the wizard in VS (XPO, Blazor)
  2. Add Xpand nuget packages to project, (Xpand.XAF.Web.All, Xpand.XAF.Core.All, System.Interactive)
  3. Configure Startup.cs:
    [assembly: HostingStartup(typeof(Xpand.Extensions.Blazor.HostingStartup))]
    [assembly: HostingStartup(typeof(Xpand.XAF.Modules.Blazor.BlazorStartup))]
  4. Register an Xpand module e.g. in BlazorModule.cs
    
    using System.ComponentModel;
    using DevExpress.ExpressApp;
    using DevExpress.ExpressApp.Updating;

namespace XafXpand2224.Blazor.Server;

[ToolboxItemFilter("Xaf.Platform.Blazor")] // For more typical usage scenarios, be sure to check out https://docs.devexpress.com/eXpressAppFramework/DevExpress.ExpressApp.ModuleBase. public sealed class XafXpand2224BlazorModule : ModuleBase { public XafXpand2224BlazorModule() { RequiredModuleTypes.Add(typeof(Xpand.XAF.Modules.Reactive.ReactiveModule)); RequiredModuleTypes.Add(typeof(Xpand.XAF.Modules.RefreshView.RefreshViewModule)); } public override IEnumerable GetModuleUpdaters(IObjectSpace objectSpace, Version versionFromDB) { return ModuleUpdater.EmptyModuleUpdaters; } public override void Setup(XafApplication application) { base.Setup(application); } }


5. Run Web project, initially the navigation screen is shown and then crashes after a few seconds.

[XafXpand2224.zip](https://github.com/eXpandFramework/eXpand/files/10755798/XafXpand2224.zip)

𝗘𝘅𝗽𝗲𝗰𝘁𝗲𝗱 𝗯𝗲𝗵𝗮𝘃𝗶𝗼𝗿
The project to run

❤ Bronze Sponsor
apobekiaris commented 1 year ago

see #978

apobekiaris commented 1 year ago

there are still issues with ME, I am working on them

apobekiaris commented 1 year ago

The pre-release 4.222.2.0 in the Reactive.XAF lab branch includes commits that relate to this task:

To minimize version conflicts we recommend that you use the Xpand.XAF.Core.All, Xpand.XAF.Win.All, Xpand.XAF.Web.All packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Released packages: Xpand.Extensions v.4.222.2
Xpand.Extensions.Blazor v.4.222.2
Xpand.Extensions.Mono.Cecil v.4.222.2
Xpand.Extensions.Office.Cloud v.4.222.2
Xpand.Extensions.Office.Cloud.Google.Blazor v.4.222.2
Xpand.Extensions.Reactive v.4.222.2
Xpand.Extensions.XAF v.4.222.2
Xpand.Extensions.XAF.Xpo v.4.222.2
Xpand.TestsLib v.4.222.2
Xpand.TestsLib.Blazor v.4.222.2
Xpand.TestsLib.Common v.4.222.2
Xpand.TestsLib.EasyTest v.4.222.2
Xpand.VersionConverter v.4.222.2
Xpand.XAF.Core.All v.4.222.2
Xpand.XAF.Modules.AutoCommit v.4.222.2
Xpand.XAF.Modules.Blazor v.4.222.2
Xpand.XAF.Modules.BulkObjectUpdate v.4.222.2
Xpand.XAF.Modules.CloneMemberValue v.4.222.2
Xpand.XAF.Modules.CloneModelView v.4.222.2
Xpand.XAF.Modules.Email v.4.222.2
Xpand.XAF.Modules.GridListEditor v.4.222.2
Xpand.XAF.Modules.HideToolBar v.4.222.2
Xpand.XAF.Modules.JobScheduler.Hangfire v.4.222.2
Xpand.XAF.Modules.JobScheduler.Notification v.4.222.2
Xpand.XAF.Modules.MasterDetail v.4.222.2
Xpand.XAF.Modules.ModelMapper v.4.222.2
Xpand.XAF.Modules.ModelViewInheritance v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google.Calendar v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google.Tasks v.4.222.2
Xpand.XAF.Modules.Office.DocumentStyleManager v.4.222.2
Xpand.XAF.Modules.OneView v.4.222.2
Xpand.XAF.Modules.PositionInListView v.4.222.2
Xpand.XAF.Modules.ProgressBarViewItem v.4.222.2
Xpand.XAF.Modules.RazorView v.4.222.2
Xpand.XAF.Modules.Reactive v.4.222.2
Xpand.XAF.Modules.Reactive.Logger v.4.222.2
Xpand.XAF.Modules.Reactive.Logger.Client.Win v.4.222.2
Xpand.XAF.Modules.Reactive.Logger.Hub v.4.222.2
Xpand.XAF.Modules.Reactive.Rest v.4.222.2
Xpand.XAF.Modules.RefreshView v.4.222.2
Xpand.XAF.Modules.SequenceGenerator v.4.222.2
Xpand.XAF.Modules.Speech v.4.222.2
Xpand.XAF.Modules.SpellChecker v.4.222.2
Xpand.XAF.Modules.StoreToDisk v.4.222.2
Xpand.XAF.Modules.SuppressConfirmation v.4.222.2
Xpand.XAF.Modules.TenantManager v.4.222.2
Xpand.XAF.Modules.ViewEditMode v.4.222.2
Xpand.XAF.Modules.ViewItemValue v.4.222.2
Xpand.XAF.Modules.ViewWizard v.4.222.2
Xpand.XAF.Modules.Windows v.4.222.2
Xpand.XAF.Web.All v.4.222.2
Xpand.XAF.Win.All v.4.222.2

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 these packages 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.

pjcunningham commented 1 year ago

That's fixed it!

expand commented 9 months ago

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

.Thank you for your contribution.