diff --git a/AElf.ExceptionHandler/ExceptionHandler.cs b/AElf.ExceptionHandler/ExceptionHandler.cs index 98bf717..84e2973 100644 --- a/AElf.ExceptionHandler/ExceptionHandler.cs +++ b/AElf.ExceptionHandler/ExceptionHandler.cs @@ -392,7 +392,7 @@ private static string CacheKey(Type targetType, string methodName) private static ExceptionHandlerInfo CreateExceptionHandlerInfo(Type targetType, string methodName) { Func> methodToCall; - var methodInfo = targetType.GetMethod(methodName); + var methodInfo = targetType.GetMethod(methodName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static); var methodParams = methodInfo.GetParameters(); var instanceParameter = Expression.Parameter(typeof(object), "instance");