Signature Error: The function/event '' does not match the necessary signature - has the delegate or function/event changed?

I have this issue and it is not solved by restarting the project. even worse it didn’t go well with regenerating the project files and rebuilding the solution.