{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/core/issues/1178","repository_url":"https://api.github.com/repos/dotnet/core","labels_url":"https://api.github.com/repos/dotnet/core/issues/1178/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/core/issues/1178/comments","events_url":"https://api.github.com/repos/dotnet/core/issues/1178/events","html_url":"https://github.com/dotnet/core/issues/1178","id":283994349,"node_id":"MDU6SXNzdWUyODM5OTQzNDk=","number":1178,"title":"Request.Path is empty while Request.PathBase is not","user":{"login":"markentingh","id":2896371,"node_id":"MDQ6VXNlcjI4OTYzNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/2896371?v=4","gravatar_id":"","url":"https://api.github.com/users/markentingh","html_url":"https://github.com/markentingh","followers_url":"https://api.github.com/users/markentingh/followers","following_url":"https://api.github.com/users/markentingh/following{/other_user}","gists_url":"https://api.github.com/users/markentingh/gists{/gist_id}","starred_url":"https://api.github.com/users/markentingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markentingh/subscriptions","organizations_url":"https://api.github.com/users/markentingh/orgs","repos_url":"https://api.github.com/users/markentingh/repos","events_url":"https://api.github.com/users/markentingh/events{/privacy}","received_events_url":"https://api.github.com/users/markentingh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-12-21T20:24:23Z","updated_at":"2018-07-04T13:46:33Z","closed_at":"2017-12-27T19:38:02Z","author_association":"NONE","body":"# Request.Path is empty while Request.PathBase is not\r\n\r\n# General\r\n\r\nUsing .NET Core 2.0, Windows 10, IIS Express.\r\n\r\nWhile debugging my .NET Core web application, IIS Express launches a new browser window with the address `localhost:7777/dashboard`. Usually, I am able to view my web site at this point, but upon transferring my project over to a new machine with a fresh copy of Visual Studio Community 2017, the project returns a very strange error. The environment is identical to the environment on my last machine, so I see no reason why this error should occur. The error occurs because `HttpContext.Request.Path` is empty, even though I am accessing the path `/dashboard` in the URL. I noticed something very strange while looking into the error. `HttpContext.Request.PathBase` returns `/dashboard` even though `HttpContext.Request.Path` is returning an empty string.\r\n\r\nThe `HttpContext` object is accessed from the `context` argument passed within the line of code, `app.Run(async (context) =>{});` located in `Startup.cs`.\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/core/issues/comments/402484164","html_url":"https://github.com/dotnet/core/issues/1178#issuecomment-402484164","issue_url":"https://api.github.com/repos/dotnet/core/issues/1178","id":402484164,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjQ4NDE2NA==","user":{"login":"Segment22","id":40831475,"node_id":"MDQ6VXNlcjQwODMxNDc1","avatar_url":"https://avatars3.githubusercontent.com/u/40831475?v=4","gravatar_id":"","url":"https://api.github.com/users/Segment22","html_url":"https://github.com/Segment22","followers_url":"https://api.github.com/users/Segment22/followers","following_url":"https://api.github.com/users/Segment22/following{/other_user}","gists_url":"https://api.github.com/users/Segment22/gists{/gist_id}","starred_url":"https://api.github.com/users/Segment22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Segment22/subscriptions","organizations_url":"https://api.github.com/users/Segment22/orgs","repos_url":"https://api.github.com/users/Segment22/repos","events_url":"https://api.github.com/users/Segment22/events{/privacy}","received_events_url":"https://api.github.com/users/Segment22/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T13:46:32Z","updated_at":"2018-07-04T13:46:32Z","author_association":"NONE","body":"Error still exists. Changing App URL in project properties corrupts .vs\\config\\applicationhost.config file.\r\n\r\n```\r\n<application path=\"/\" applicationPool=\"WebMonitoring AppPool\">\r\n          <virtualDirectory path=\"/\" physicalPath=\"C:\\Repository\\Monitoring\\Sources\\Application\\WebMonitoring\\WebMonitoring\" />\r\n          <virtualDirectory path=\"/api/Cfg\" physicalPath=\"C:\\Repository\\Monitoring\\Sources\\Application\\WebMonitoring\" />\r\n          <virtualDirectory path=\"/api\" physicalPath=\"C:\\Repository\\Monitoring\\Sources\\Application\" />\r\n</application>\r\n<application path=\"/api/Cfg/Register\" applicationPool=\"Register AppPool\">\r\n           <virtualDirectory path=\"/\" physicalPath=\"C:\\Repository\\Monitoring\\Sources\\Application\\WebMonitoring\\WebMonitoring\" />\r\n</application>\r\n```"}}
{"actor":{"display_login":"Segment22"}}