{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/wcf/issues/1114","repository_url":"https://api.github.com/repos/dotnet/wcf","labels_url":"https://api.github.com/repos/dotnet/wcf/issues/1114/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/wcf/issues/1114/comments","events_url":"https://api.github.com/repos/dotnet/wcf/issues/1114/events","html_url":"https://github.com/dotnet/wcf/issues/1114","id":152870632,"number":1114,"title":"Make it possible to stop self-hosted exe when not running non-elevated","user":{"login":"roncain","id":3913124,"avatar_url":"https://avatars.githubusercontent.com/u/3913124?v=3","gravatar_id":"","url":"https://api.github.com/users/roncain","html_url":"https://github.com/roncain","followers_url":"https://api.github.com/users/roncain/followers","following_url":"https://api.github.com/users/roncain/following{/other_user}","gists_url":"https://api.github.com/users/roncain/gists{/gist_id}","starred_url":"https://api.github.com/users/roncain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roncain/subscriptions","organizations_url":"https://api.github.com/users/roncain/orgs","repos_url":"https://api.github.com/users/roncain/repos","events_url":"https://api.github.com/users/roncain/events{/privacy}","received_events_url":"https://api.github.com/users/roncain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/wcf/labels/Infrastructure","name":"Infrastructure","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T20:47:59Z","updated_at":"2016-05-03T20:47:59Z","closed_at":null,"body":"The script to start the self-hosted WCF service is able to run in a non-elevated window.  It self-elevates and starts the service successfully.  However, the script to stop the service fails with \"access denied\" when run from a non-elevated window.  The net effect is attempting to do an OuterLoop run self-hosted from a non-elevated CMD window will leave the service running, making it impossible to clean the enlistment without manual intervention.\r\n\r\nPR #1113 attempts to solve this by using RunElevated.vbs, but the TaskKill.exe still fails to stop the exe.  The task here is to investigate and make it succeed.  It is currently expected we will run selfhost tests in the lab elevated.  This change is protection so we don't render an enlistment uncleanable if we accidentally run non-elevated."}}