I've got a Domain Driven Design solution and for some reason, I'm getting this exception at RunTime when the API call is made through GateWay:
One or more errors occurred. (Method not found: 'Void FluentValidation.AbstractValidator`1.When(System.Func`2<!0,Boolean>, System.Action)'.)
The error occurs as below:
I have solution like this:
The main 4 project I'm focusing on right now are:
- Core.Model
- Account.Api
- Service.Api.Gateway
- Web.ClientSite
Web.ClientSite
makes request to Service.Api.Gateway
which then calls Account.Api
.
Note that Core.Model
is referenced everywhere
VERY IMPORTANT: If I remove the reference of FluentValidation from Core.Model
, the exception disappears.
I'm hoping these information is enough. Why do you think I'm getting this exception and how can I eliminate.