title: System.InvalidOperationException: 'A path base can only be configured using IApplicationBuilder.UsePathBase().'
body: <p>I have an ASP.Net Core 2 Solution running in Docker which is working fine on 1 machine the is running VS 2017 Professional but on another machine running VS 2017 Community I am getting the following error</p>
  
  <blockquote>
    <p>"System.InvalidOperationException: 'A path base can only be
    configured using IApplicationBuilder.UsePathBase().'"</p>
  </blockquote>
  
  <p>when I try and start or debug the solution using docker. If I start the solution with IIS Express it works fine. </p>
  
  <p>There is nothing special about my project:</p>
  
  <pre><code>public class Program
  {
      public static void Main(string[] args)
      {
          BuildWebHost(args).Run(); // &lt;- Exception happens here
      }
  
      public static IWebHost BuildWebHost(string[] args) =&gt;
          WebHost.CreateDefaultBuilder(args)
              .CaptureStartupErrors(true)
              .UseStartup&lt;Startup&gt;()
              .Build();
  }
  
  public class Startup
  {
      public Startup(IHostingEnvironment env)
      {
  
      }
  
      public IConfiguration Configuration { get; }
  
      // This method gets called by the runtime. Use this method to add services to the container.
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddMvc();
      }
  
      // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
      public void Configure(IApplicationBuilder app, IHostingEnvironment env)
      {
  
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
  
          app.UseMvc();
      }
  }
  </code></pre>
  
  <p>I also get this pop up in a new window:</p>
  
  <pre><code>crit: Microsoft.AspNetCore.Server.Kestrel[0]
        Unable to start Kestrel.
  System.InvalidOperationException: A path base can only be configured using IApplicationBuilder.UsePathBase().
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.&lt;BindAddressAsync&gt;d__7.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.&lt;BindAsync&gt;d__2.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.&lt;BindAsync&gt;d__0.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.&lt;StartAsync&gt;d__21`1.MoveNext()
  </code></pre>
  
  <p>Everything i've read on this issue don't seem related. Any ideas?</p>