【发布时间】:2019-07-03 23:52:55
【问题描述】:
我有一个领域驱动设计解决方案,但由于某种原因,当通过 GateWay 进行 API 调用时,我在 RunTime 收到此异常: p>
One or more errors occurred. (Method not found: 'Void FluentValidation.AbstractValidator`1.When(System.Func`2<!0,Boolean>, System.Action)'.)
错误发生如下:
我有这样的解决方案:
我现在主要关注的 4 个项目是:
- Core.Model
- Account.Api
- Service.Api.Gateway
- Web.ClientSite
Web.ClientSite 向Service.Api.Gateway 发出请求,然后调用Account.Api。
请注意,Core.Model到处都被引用
非常重要:如果我从 Core.Model 中删除 FluentValidation 的引用,异常就会消失。
我希望这些信息就足够了。你认为我为什么会遇到这个异常,我该如何消除。
【问题讨论】:
标签: exception fluentvalidation api-gateway