I had this issue when calling a Blazor component and supplying an EventCallback.
The issue arose because I had defined the same method twice.
Removing one of them solved the issue.