When using System.Activities 22.4.1, if the property [AutomaticallyCloseAfter] of the message box activity is set to a value and executed, an exception occurs if the button is clicked in time.
This occurs in Windows-Legacy projects.
Source: Message Box
Message: Process has exited, so the requested information is not available.
Exception Type: System.InvalidOperationException
Sorry if the expression is unclear as I am translating.