I’m getting this error
Assign: process was not started by this object so requested information cannot be determined.
I’m using this query in assign value:
(from n in allProcessList where n.ProcessName. ToLower.Contains (processName) and n.StartInfo.EnvironmentVariables
(“USERNAME”).Equals(userName) select n). ToArray
(From n In allProcessList Where n.ProcessName.ToLower().Contains(processName.ToLower()) AndAlso If(n.StartInfo.EnvironmentVariables("USERNAME"), String.Empty).Equals(userName, StringComparison.OrdinalIgnoreCase) Select n).ToArray()
I’m using this query in assign value:
(from n in allProcessList where n.ProcessName. ToLower.Contains (processName) and n.StartInfo.EnvironmentVariables
(“USERNAME”).Equals(userName) select n). ToArray
And in assign To value using filterprocesslist with system.diagnostics.process var type.
I am working on the Windows migration project, and this issue isn’t present in the Windows Legacy code. However, after converting to Windows, the issue is occurring in the KillProcess.xaml file. I don’t have much context about the project, and the developer mentioned that it’s being used for the kill process.
Ok this could have done to kill the processes for the current user only. Earlier version of Kill Process activity didn’t had the option to Applies To - Only Current User
What you can do is, you would have a list of appliactions you would be killing. So iterate that list of application and in that Foe Each activity use Kill Process activity and pass the iterating process to kill with property ‘Applies To - Only Current User’