Skip to content

ArgumentException: Could not find method overriding method with nested generics #297

@BitWizJason

Description

@BitWizJason

Visual Studio Enterprise 2017 Version 15.2 (26430.16) Release
Target framework: .NET Framework 4.6.1
Castle.Core (3.3.0)

System.ArgumentException occurred
  HResult=0x80070057
  Message=Could not find method overriding System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[TEntity]] GetAllCache[TEntity,TEntityPrimaryKey](Abp.Domain.Repositories.IRepository`2[TEntity,TEntityPrimaryKey], System.String, System.Linq.Expressions.Expression`1[System.Func`2[TEntity,System.Object]][]) on type DES.Employees.EmployeesAppService. This is most likely a bug. Please report it.
  Source=Castle.Core
  StackTrace:
   at Castle.DynamicProxy.Internal.InvocationHelper.ObtainMethod(MethodInfo proxiedMethod, Type type)
   at Castle.DynamicProxy.Internal.InvocationHelper.GetMethodOnType(Type type, MethodInfo proxiedMethod)
   at Castle.DynamicProxy.Internal.InheritanceInvocation.get_MethodInvocationTarget()
   at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Abp.Auditing.AuditingInterceptor.Intercept(IInvocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Abp.Runtime.Validation.Interception.ValidationInterceptor.Intercept(IInvocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.EmployeesAppServiceProxy.GetAllCache[TEntity,TEntityPrimaryKey](IRepository`2 repository, String cacheName, Expression`1[] entityIncludes)
   at DES.Shared.AbstractCrudDESAppServiceBase.<GetAll>d__4`4.MoveNext() in \DES\src\DES.Application\Shared\AbstractCrudDESAppServiceBase.cs:line 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions