{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/3495","repository_url":"https://api.github.com/repos/aspnet/Home","labels_url":"https://api.github.com/repos/aspnet/Home/issues/3495/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/3495/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/3495/events","html_url":"https://github.com/aspnet/Home/issues/3495","id":356957496,"node_id":"MDU6SXNzdWUzNTY5NTc0OTY=","number":3495,"title":"Unable to start Kestrel: path base can only be configured using IApplicationBuilder.UsePathBase","user":{"login":"JunTaoLuo","id":2030323,"node_id":"MDQ6VXNlcjIwMzAzMjM=","avatar_url":"https://avatars1.githubusercontent.com/u/2030323?v=4","gravatar_id":"","url":"https://api.github.com/users/JunTaoLuo","html_url":"https://github.com/JunTaoLuo","followers_url":"https://api.github.com/users/JunTaoLuo/followers","following_url":"https://api.github.com/users/JunTaoLuo/following{/other_user}","gists_url":"https://api.github.com/users/JunTaoLuo/gists{/gist_id}","starred_url":"https://api.github.com/users/JunTaoLuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JunTaoLuo/subscriptions","organizations_url":"https://api.github.com/users/JunTaoLuo/orgs","repos_url":"https://api.github.com/users/JunTaoLuo/repos","events_url":"https://api.github.com/users/JunTaoLuo/events{/privacy}","received_events_url":"https://api.github.com/users/JunTaoLuo/received_events","type":"User","site_admin":false},"labels":[{"id":91327625,"node_id":"MDU6TGFiZWw5MTMyNzYyNQ==","url":"https://api.github.com/repos/aspnet/Home/labels/discussion","name":"discussion","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-04T20:08:22Z","updated_at":"2018-09-10T18:09:33Z","closed_at":null,"author_association":"NONE","body":"_From @JDGHHou on September 4, 2018 19:3_\n\nMy application runs fine in Visual Studio 2017 using the built-in IIS Express. However, when I deploy my code to IIS, suddenly I get the attached error.\r\n\r\nI have found a couple of articles saying that I need to set my application URL to \r\n\"applicationUrl\": \"http://localhost/\"\r\nrather than \r\n\"applicationUrl\": \"http://localhost/{my application name}/\"\r\n\r\nBut when I do that, my application tries to deploy to the webroot, and my application is stored in a folder elsewhere, so that doesn't work.\r\n\r\nIn all this, I am so confused as to what Microsoft's approach is. Why - if IIS Express works great at the press of a button - doesn't Microsoft just copy that exactly and apply it to IIS? I understand there may be more in-depth configuration a user may need to do, but that should be optional for users who need something more complex. Deploying something in IIS is almost always a complete living nightmare involving a million random undocumented settings. It is needlessly difficult and seems to default to the most random edge-case setup, rather than the most simple.\r\n\r\nAnyway... Can someone please tell me how to make my application just deploy to IIS and work the same as it already does on other Microsoft products?\r\n\r\n----------THIS IS THE ERROR MESSAGE --------------------\r\nSystem.InvalidOperationException: 'A path base can only be configured using IApplicationBuilder.UsePathBase().'\r\n-----------------------------------------------\r\n\r\ninfo: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]\r\n      User profile is available. Using 'C:\\Users\\JohnDunn\\AppData\\Local\\ASP.NET\\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.\r\ncrit: Microsoft.AspNetCore.Server.Kestrel[0]\r\n      Unable to start Kestrel.\r\nSystem.InvalidOperationException: A path base can only be configured using IApplicationBuilder.UsePathBase().\r\n   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.ParseAddress(String address, Boolean& https)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IServerAddressesFeature addresses, KestrelServerOptions serverOptions, ILogger logger, Func`2 createBinding)\r\n   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)\n\n_Copied from original issue: aspnet/KestrelHttpServer#2882_"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/420007470","html_url":"https://github.com/aspnet/Home/issues/3495#issuecomment-420007470","issue_url":"https://api.github.com/repos/aspnet/Home/issues/3495","id":420007470,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDAwNzQ3MA==","user":{"login":"Eilon","id":202643,"node_id":"MDQ6VXNlcjIwMjY0Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/202643?v=4","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T18:09:33Z","updated_at":"2018-09-10T18:09:33Z","author_association":"MEMBER","body":"@JDGHHou do you have any additional info on this so that we can investigate?"}}
{"actor":{"display_login":"Eilon"}}