This is a follow-up question to Setting internal properties in composite WF4 Activities at design time.
I am creating a composite Windows Workflow Activity (under .NET 4) that contains Receive and SendReply Activities with some of the properties predefined. This is a NativeActivity, not an Activity Template. (See @Maurice's reply to the above question for an example.)
If I attempt to set an InArgument associated with the internal SendReply from Execute (using the parent's context), I get an InvalidOperationException:
An Activity can only get the location of arguments which it owns. Activity 'CreateInstance' is trying to get the location of argument 'Parameter0' which is owned by activity 'SendReply'.
In my case I'm trying to set a CorrelationHandle, but I believe this would affect SendParametersContent Parameters as well. How can I work around this?