Error found while using Invoke Code

Hi There @sun_xipeng welcome to uipath community

Can you post the whole code you are using (maybe the xaml) so that we can dissect the problem, also helps understand what you are trying to achieve…