我有一个域驱动的设计解决方案,出于某种原因,我在 运行时 当API调用通过 网关 :
One or more errors occurred. (Method not found: 'Void FluentValidation.AbstractValidator`1.When(System.Func`2<!0,Boolean>, System.Action)'.)
错误发生如下:
我有这样的解决方案:
我现在关注的主要4个项目是:
Web.ClientSite 请求 Service.Api.Gateway 然后呼叫 Account.Api . 注意 Core.Model 被引用 到处
Web.ClientSite
Service.Api.Gateway
Account.Api
Core.Model
非常重要的是:如果我从 核心模型 ,异常消失。
核心模型
我希望这些信息足够了。你认为我为什么会得到这个例外,我如何才能消除。
看起来有些libs(ocelot)与FluentValidation8.1.2中的新变化不兼容。尝试在8.1.2之前降级到FluentValidation。希望它有帮助