jwaliszko / ExpressiveAnnotations

Annotation-based conditional validation library.
MIT License
351 stars 123 forks source link

Blazor Web Assembly Error (.NET Core 8.0) #219

Open livinglovinglaughing opened 5 months ago

livinglovinglaughing commented 5 months ago

Hey, we have an error that is occuring on specific RequiredIf decorated fields and throwing an exception on validation. Do you know if there is a solution?

.NET 8 MAUI/Blazor Web Assembly

System.ComponentModel.DataAnnotations.ValidationException: RequiredIfAttribute: validation applied to InfoReceivedByOther field failed. ---> ExpressiveAnnotations.Analysis.ParseErrorException: Parse fatal error. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. File name: 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856aystem.ComponentModel.DataAnnotations.ValidationException: RequiredIfAttribute: validation applied to InfoReceivedByOther field failed. ---> ExpressiveAnnotations.Analysis.ParseErrorException: Parse fatal error. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. File name: 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'