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

Updating model, error "The type initializer for 'Xpand.XAF.Modules.Reactive.ReactiveModuleBase' threw an exception." is raised #907

Closed Dade27 closed 9 months ago

Dade27 commented 2 years ago

Hi Tolis, I am upgrading a XAF+eXpand win+web+xpo solution from 18.1.4 to 21.2.5 but I becoming crazy. I decided to create a brand new XAF solution and add eXpandAgnostic nuget package to "Module" project, but I am not able to run successfully "Update model" on the project. Error I have into updating VS output window is:

"------- Updating model differences: Project: C:\Users\david.desidera\source\repos\DXApplicationNETframe\DXApplicationNETframe.Module\DXApplicationNETframe.Module.csproj
Error:
Unable to create an instance of the "Xpand.XAF.Modules.ModelViewInheritance.ModelViewInheritanceModule" type.
Reason: "The type initializer for 'Xpand.XAF.Modules.Reactive.ReactiveModuleBase' threw an exception."
Update failed"

I attached here my test solution: could you please help me to understand where I mistake? Thank you in advance With best regards David Desiderร 

DXApplicationNETframe.zip

apobekiaris commented 2 years ago

looks interesting case, however not high priority, heads up that it might take a while

Dade27 commented 2 years ago

I see... but what do you suggest for my case? Here below a few details.

At the end of April I must release the never version: any suggestions are more then welcome! Thanks David

apobekiaris commented 2 years ago

lokos related to #908 so your only option is to recompile the framework and apply the same fix. Your can also go manual without the Update Model command, just open your models make a dummy change and save them, there should be an UnsuableNodes.on path xafml if problems

Dade27 commented 2 years ago

Thanks a lot. I will try and let you the result.

Dade27 commented 2 years ago

Sorry Tolis if I bother you again..... but I am becoming crazy. I attached my Xpand test solution.... in agnostic module.cs if I comment RequiredModuleTypes.Add(typeof(Xpand.ExpressApp.Dashboard.DashboardModule)); no errors during updating model As soon as I uncomment it, I receive "Could not load file or assembly 'Xpand.XAF.Modules.ViewEditMode, Version=4.212.8.0, ......" Image 20220321_190906 XpandApplication.zip

Thank you in advance for any suggestions With best regards David

apobekiaris commented 2 years ago

works fine in my side

------- Updating model differences: Project: C:\Work\issues\907\XpandApplication\XpandApplication\XpandApplication.Module\XpandApplication.Module.csproj
Update complete

------- Updating model differences: Project: C:\Work\issues\907\XpandApplication\XpandApplication\XpandApplication.Module.Web\XpandApplication.Module.Web.csproj
Update complete

------- Updating model differences: Project: C:\Work\issues\907\XpandApplication\XpandApplication\XpandApplication.Web\XpandApplication.Web.csproj
Update complete

------- Updating model differences: Project: C:\Work\issues\907\XpandApplication\XpandApplication\XpandApplication.Module.Win\XpandApplication.Module.Win.csproj
Update complete

------- Updating model differences: Project: C:\Work\issues\907\XpandApplication\XpandApplication\XpandApplication.Win\XpandApplication.Win.csproj
Update complete
  1. I open the solution
  2. run projectconverter as prompted for 21.2.6
  3. Hit F5 and same exception thown however it clearly states about a missing dependecy to System.Text.Json 5. I install that package in the agnostic module and F5 again with success. Next I tried the Update Model command
expand commented 9 months ago

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

.Thank you for your contribution.