I am getting the following error with CleanupPsExec on my build workflow.
System.InvalidOperationException: An Activity can only get the location of arguments which it owns. Activity 'CleanupPsExec' is trying to get the location of argument 'TargetMachine' which is owned by activity 'KillProcess'. at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Any ideas?
Comments: ** Comment from web user: mikedouglas **
System.InvalidOperationException: An Activity can only get the location of arguments which it owns. Activity 'CleanupPsExec' is trying to get the location of argument 'TargetMachine' which is owned by activity 'KillProcess'. at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Any ideas?
Comments: ** Comment from web user: mikedouglas **
Thanks for posting this and bringing it to my attention. I was getting a similar error for a different property when I was trying to create a static logging object. I haven't seen this for TargetMachine. I will take a look at this right away.
Thanks,
Mike