{"action":"closed","issue":{"url":"https://api.github.com/repos/PeterKottas/DotNetCore.WindowsService/issues/19","repository_url":"https://api.github.com/repos/PeterKottas/DotNetCore.WindowsService","labels_url":"https://api.github.com/repos/PeterKottas/DotNetCore.WindowsService/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/PeterKottas/DotNetCore.WindowsService/issues/19/comments","events_url":"https://api.github.com/repos/PeterKottas/DotNetCore.WindowsService/issues/19/events","html_url":"https://github.com/PeterKottas/DotNetCore.WindowsService/issues/19","id":225199256,"number":19,"title":"Having trouble running with action:run","user":{"login":"btompkins","id":562936,"avatar_url":"https://avatars2.githubusercontent.com/u/562936?v=3","gravatar_id":"","url":"https://api.github.com/users/btompkins","html_url":"https://github.com/btompkins","followers_url":"https://api.github.com/users/btompkins/followers","following_url":"https://api.github.com/users/btompkins/following{/other_user}","gists_url":"https://api.github.com/users/btompkins/gists{/gist_id}","starred_url":"https://api.github.com/users/btompkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btompkins/subscriptions","organizations_url":"https://api.github.com/users/btompkins/orgs","repos_url":"https://api.github.com/users/btompkins/repos","events_url":"https://api.github.com/users/btompkins/events{/privacy}","received_events_url":"https://api.github.com/users/btompkins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-04-28T21:37:33Z","updated_at":"2017-05-27T06:41:07Z","closed_at":"2017-05-27T06:41:07Z","body":"When I attempt to start my service without any parameters, it runs fine, but when I use action:run I get the following errors:\r\n\r\nPS C:\\Projects\\pts.betasystems\\src\\PTS.BetaSystems.Web\\bin\\Release\\PublishOutput> dotnet .\\PTS.BetaSystems.Web.dll action:run\r\n\r\nService PTS.BetaSystems.Web.Program+ExampleService errored with exception : The service process could not connect to the service controller\r\n\r\nI get this error even if I comment out any of my own code in my start method.\r\n\r\nHere's my project.json file: \r\n\r\n{\r\n    \"userSecretsId\": \"aspnet-WebApplication1-f8dd4d00-7f76-4595-97e6-5aa03aa0aa63\",\r\n\r\n  \"dependencies\": {\r\n    \"Microsoft.NETCore.App\": {\r\n      \"version\": \"1.1.0\",\r\n      \"type\": \"platform\"\r\n    },\r\n    \"Microsoft.AspNetCore.Mvc\": \"1.1.0\",\r\n    \"Microsoft.AspNetCore.Routing\": \"1.1.0\",\r\n    \"Microsoft.AspNetCore.Server.IISIntegration\": \"1.1.0\",\r\n    \"Microsoft.AspNetCore.Server.Kestrel\": \"1.1.0\",\r\n    \"Microsoft.Extensions.Configuration.EnvironmentVariables\": \"1.1.0\",\r\n    \"Microsoft.Extensions.Configuration.FileExtensions\": \"1.1.0\",\r\n    \"Microsoft.Extensions.Configuration.Json\": \"1.1.0\",\r\n    \"Microsoft.Extensions.Logging.Console\": \"1.1.0\",\r\n    \"Microsoft.Extensions.Logging.Debug\": \"1.1.0\",\r\n    \"Microsoft.Extensions.Options.ConfigurationExtensions\": \"1.1.0\",\r\n    \"Microsoft.AspNetCore.StaticFiles\": \"1.1.0\",\r\n    \"Microsoft.AspNetCore.SpaServices\": \"1.0.0-beta-000019\",\r\n    \"Microsoft.AspNetCore.Antiforgery\": \"1.1.0\",\r\n    \"Microsoft.AspNetCore.Diagnostics\": \"1.1.0\",\r\n    \"Microsoft.AspNetCore.Authentication.Cookies\": \"1.1.0\",\r\n    \"Microsoft.AspNetCore.Authentication\": \"1.1.0\",\r\n    \"NLog.Extensions.Logging\": \"1.0.0-rtm-beta2\",\r\n    \"Microsoft.AspNetCore.Razor.Tools\": {\r\n      \"version\": \"1.0.0-preview2-final\",\r\n      \"type\": \"build\"\r\n    },\r\n    \"Microsoft.Extensions.Configuration.UserSecrets\": \"1.1.0\",\r\n    \"Microsoft.Extensions.Logging\": \"1.1.0-*\",\r\n    \"Microsoft.VisualStudio.Web.BrowserLink.Loader\": \"14.0.0\",\r\n    \"Microsoft.VisualStudio.Web.CodeGeneration.Tools\": {\r\n      \"version\": \"1.0.0-preview2-final\",\r\n      \"type\": \"build\"\r\n    },\r\n    \"Microsoft.VisualStudio.Web.CodeGenerators.Mvc\": {\r\n      \"version\": \"1.0.0-preview2-final\",\r\n      \"type\": \"build\"\r\n    },\r\n    \"Swashbuckle.AspNetCore\": \"1.0.0-rc1\",\r\n    \"Hangfire\": \"1.6.12\",\r\n    \"NLog.Web.AspNetCore\": \"4.3.1\",\r\n    \"Hangfire.MemoryStorage\": \"1.5.0\"\r\n  },\r\n\r\n  \"tools\": {\r\n  \"Microsoft.AspNetCore.Server.IISIntegration.Tools\": \"1.1.0-preview4-final\"\r\n  },\r\n\r\n\r\n    \"frameworks\": {\r\n      \"netcoreapp1.0\": {\r\n        \"imports\": [\r\n          \"dotnet5.6\",\r\n          \"portable-net45+win8\"\r\n        ]\r\n      }\r\n    },\r\n\r\n    \"buildOptions\": {\r\n      \"emitEntryPoint\": true,\r\n      \"preserveCompilationContext\": true\r\n    },\r\n\r\n    \"runtimeOptions\": {\r\n      \"configProperties\": {\r\n        \"System.GC.Server\": true\r\n      }\r\n    },\r\n\r\n    \"publishOptions\": {\r\n      \"include\": [\r\n        \"wwwroot\",\r\n        \"web.config\",\r\n        \"Views\",\r\n        \"nlog.config\",\r\n        \"devices.json\"\r\n\r\n      ]\r\n    },\r\n\r\n    \"scripts\": {\r\n      \"postpublish\": [ \"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%\" ]\r\n    }\r\n  }"}}
{"actor":{"display_login":"PeterKottas"}}