title: .NET Web API cannot be exposed/run
body: <p>I cannot run a Web API project on .NET 5 (tried .NET Core 3.1 before, the same) with the default template of WeatherForecast on my Windows Server 2012R2 (virtual) machine. The host creation is just stuck on <code>hostBuilder.Build()</code>.</p>
  <pre class="lang-cs prettyprint-override"><code>public class Program
  {
      public static void Main(string[] args)
      {
          Console.WriteLine(&quot;Start&quot;);
          var hostBuilder = CreateHostBuilder(args);
          Console.WriteLine(&quot;hostBuilder created&quot;);
          var host = hostBuilder.Build();
          Console.WriteLine(&quot;host created&quot;);
          host.Run();
          Console.WriteLine(&quot;host run&quot;);
      }
  ...
  </code></pre>
  <p>so the output is</p>
  <pre><code>Start
  hostBuilder created
  </code></pre>
  <p>No errors.
  I used different ways to run the code: VS 2019, Rider and CMD which all execute pretty much the same command <code>dotnet WebApplication.dll</code>.</p>
  <p>The same code works on Linux Mint 20.1 Ulysaa (based on Ubuntu 20.04) without any problem.</p>
  <p>Any idea what may be wrong with the Windows Environment?</p>