Persistance must be configured error

there is an invoke:

it is using Wait/Resume in XAMLs others as flagged as Main Entry Point. So it is causing this issue