{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/IISIntegration/issues/252","repository_url":"https://api.github.com/repos/aspnet/IISIntegration","labels_url":"https://api.github.com/repos/aspnet/IISIntegration/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/IISIntegration/issues/252/comments","events_url":"https://api.github.com/repos/aspnet/IISIntegration/issues/252/events","html_url":"https://github.com/aspnet/IISIntegration/issues/252","id":171653156,"number":252,"title":"\"HTTP Error 502.5 - Process Failure\" asp.net core error in Azure","user":{"login":"ardacetinkaya","id":4550197,"avatar_url":"https://avatars.githubusercontent.com/u/4550197?v=3","gravatar_id":"","url":"https://api.github.com/users/ardacetinkaya","html_url":"https://github.com/ardacetinkaya","followers_url":"https://api.github.com/users/ardacetinkaya/followers","following_url":"https://api.github.com/users/ardacetinkaya/following{/other_user}","gists_url":"https://api.github.com/users/ardacetinkaya/gists{/gist_id}","starred_url":"https://api.github.com/users/ardacetinkaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardacetinkaya/subscriptions","organizations_url":"https://api.github.com/users/ardacetinkaya/orgs","repos_url":"https://api.github.com/users/ardacetinkaya/repos","events_url":"https://api.github.com/users/ardacetinkaya/events{/privacy}","received_events_url":"https://api.github.com/users/ardacetinkaya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-08-17T13:10:07Z","updated_at":"2016-09-16T22:32:12Z","closed_at":"2016-09-08T17:34:53Z","body":"Hi;\r\nI just deployed my asp.net core app to azure which I developed in mac os x. It is successfully build and run on my local environment.\r\n\r\nBut when I browse the app on Azure site, I got the following error.\r\n\r\n![screen shot 2016-08-17 at 3 58 31 pm](https://cloud.githubusercontent.com/assets/4550197/17737018/80d6113a-6493-11e6-8ed7-b265267159d6.png)\r\n\r\nI checked the link in error https://docs.asp.net/en/latest/publishing/iis.html#common-errors for some info but could not link with my issue.\r\n\r\nAlso when I check Azure logs, in Application Logs, I have\r\n\r\n> HTTP Error 502.5 - Bad Gateway\r\n> The specified CGI application encountered an error and the server terminated the process.\r\n> Most likely causes:\r\n> The CGI application did not return a valid set of HTTP errors.A server acting as a proxy or gateway was unable to process the request due to an error in a parent gateway.\r\n\r\nAlso some additional info in Application Logs\r\n\r\n> Requested URL--http://maping:80/ (this line seemed interesting to me)\r\n> Physical Path--D:\\home\\site\\wwwroot\r\n\r\nMy web.config is like below;\r\n```xml\r\n<?xml version=\"1.0\"?>\r\n<configuration>\r\n  <system.webServer>\r\n    <handlers>\r\n      <add name=\"aspNetCore\" path=\"*\" verb=\"*\" modules=\"AspNetCoreModule\" resourceType=\"Unspecified\"/>\r\n    </handlers>\r\n    <aspNetCore processPath=\"%LAUNCHER_PATH%\" arguments=\"%LAUNCHER_ARGS%\" stdoutLogEnabled=\"false\" stdoutLogFile=\".\\logs\\stdout\" forwardWindowsAuthToken=\"false\" />\r\n  </system.webServer>\r\n</configuration>\r\n\r\nAnd finally my project.json file;\r\n\r\n`\r\n{\r\n  \"buildOptions\": {\r\n    \"emitEntryPoint\": true,\r\n    \"preserveCompilationContext\": true\r\n  },\r\n  \"dependencies\": {\r\n    \"Microsoft.NETCore.App\": {\r\n      \"version\": \"1.0.0\",\r\n      \"type\": \"platform\"\r\n    },\r\n    \"Microsoft.AspNetCore.Mvc\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.Server.IISIntegration\": \"1.0.0\",\r\n    \"Microsoft.AspNetCore.Server.Kestrel\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Configuration.EnvironmentVariables\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Configuration.FileExtensions\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Configuration.Json\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Logging\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Logging.Console\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Logging.Debug\": \"1.0.0\",\r\n    \"Microsoft.Extensions.Options.ConfigurationExtensions\": \"1.0.0\"\r\n  },\r\n  \"frameworks\": {\r\n    \"netcoreapp1.0\": {}\r\n  },\r\n  \"publishOptions\": {\r\n    \"include\": [\r\n      \"wwwroot\",\r\n      \"Views\",\r\n      \"appsettings.json\",\r\n      \"web.config\"\r\n    ]\r\n  },\r\n}`\r\n\r\n\r\nAny idea?\r\n\r\nI have also below properties for project.json\r\n\r\n \"tools\": {\r\n    \"Microsoft.AspNetCore.Server.IISIntegration.Tools\": \"1.0.0-preview2-final\"\r\n  },\r\n  \"scripts\": {\r\n    \"postpublish\": \"dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%\"\r\n  }"},"comment":{"url":"https://api.github.com/repos/aspnet/IISIntegration/issues/comments/247723944","html_url":"https://github.com/aspnet/IISIntegration/issues/252#issuecomment-247723944","issue_url":"https://api.github.com/repos/aspnet/IISIntegration/issues/252","id":247723944,"user":{"login":"moozzyk","id":1438884,"avatar_url":"https://avatars.githubusercontent.com/u/1438884?v=3","gravatar_id":"","url":"https://api.github.com/users/moozzyk","html_url":"https://github.com/moozzyk","followers_url":"https://api.github.com/users/moozzyk/followers","following_url":"https://api.github.com/users/moozzyk/following{/other_user}","gists_url":"https://api.github.com/users/moozzyk/gists{/gist_id}","starred_url":"https://api.github.com/users/moozzyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moozzyk/subscriptions","organizations_url":"https://api.github.com/users/moozzyk/orgs","repos_url":"https://api.github.com/users/moozzyk/repos","events_url":"https://api.github.com/users/moozzyk/events{/privacy}","received_events_url":"https://api.github.com/users/moozzyk/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T22:32:12Z","updated_at":"2016-09-16T22:32:12Z","body":"/cc @bricelam "}}
{"actor":{"display_login":"moozzyk"}}