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

RuleRequiredForAtLeast1Property Error in published Blazor.Server App #1056

Open huncu16 opened 4 months ago

huncu16 commented 4 months ago

Hello eXpand Team,

I converted our XAF app from .Net to .Net.Core Framework and create its blazor server app all works fine while starting it from Visual Studio Debug or Relase mode. But if I publish it and start server in IIS or running MyAppName.Blazor.Server.exe i get the following error before login screen display

Error: System.InvalidOperationException: Unable to create a model node for the 'RuleRequiredForAtLeast1Property' rule. The rule type is unregistered. Use the ValidationRulesRegistrator class to register the rule on module setup.

after i get this error I've be sure about add Xpand.Persistent.Base refence is ok then i've registered it at MyApp.Module.Module.cs in Application_SetupComplate method before initialize it wia code below

ValidationRulesRegistrator.RegisterRule(module.ModuleManager, typeof(RuleRequiredForAtLeast1Property), typeof(RuleBasePropertiesLogic));

but nothing changed in published app. It still works fine in debug or rease started with VS.

I put the screen shots below for callstack

What am i missing?

Clipboard-File-1 Clipboard-File-2

Thanx for answers.

apobekiaris commented 4 months ago

hard to tell without experementing the most obvious is to blame your publication, so my guess is that RuleRequiredForAtLeast1Property is actually in a different versioned assemby

huncu16 commented 4 months ago

Yes it cannot be publication while relase.exe giving same error and ican build and run in VS. I've checked all versions are same 22.1.302.2

huncu16 commented 3 months ago

Tolis, Hello again, After been sure all versions are same then I updated my solution from 22.1 to 23.2 (I've planned it after successfull publish in 22.1 but set its plan to early because of this problem) i still get the same error. But there is one diffenrence is now i cannot run my project vi Visual Studio too.

apobekiaris commented 3 months ago

I am sorry without repro solution cannot help much