title: Kestrel error when sending a request from an emulator
body: <p>When making a request to Kestrel via Fiddler, the following request succeeds. </p>
  
  <pre><code>GET http://192.168.1.148:5000/ HTTP/1.1
  Host: 192.168.1.148:5000
  Connection: keep-alive
  </code></pre>
  
  <p>When making the request thru the NETMF Emulator, the following request fails.</p>
  
  <pre><code>GET http://192.168.1.148:5000 HTTP/1.1
  Host: 192.168.1.148:5000
  Connection: keep-alive
  </code></pre>
  
  <p>This is the ASP.NET Core error message. The error appears to be about logging!</p>
  
  <pre><code>Request finished in 24788.6203ms 500
  fail: Microsoft.AspNet.Server.Kestrel[13]
  An unhandled exception was thrown by the application.
  System.AggregateException: An error occurred while writing to logger(s).
  
  ---&gt; System.ArgumentException: Parameter name: value
  
  at Microsoft.AspNet.Http.PathString..ctor(String value)
  at Microsoft.AspNet.Http.Internal.DefaultHttpRequest.get_Path()
  at Microsoft.AspNet.Hosting.Internal.HostingLoggerExtensions
      .HostingRequestStarting.ToString()
  at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log(
      LogLevel logLevel, Int32 eventId, Object state, 
      Exception exception, Func`3 formatter)
  at Microsoft.Extensions.Logging.Logger.Log(
      LogLevel logLevel, Int32 eventId, Object state, 
      Exception exception, Func`3 formatter)
  
  --- End of inner exception stack trace ---
  
  at Microsoft.Extensions.Logging.Logger.Log(
      LogLevel logLevel, Int32 eventId, Object state, 
      Exception exception, Func`3 formatter)
  at Microsoft.AspNet.Hosting.Internal.HostingLoggerExtensions
      .RequestStarting(ILogger logger, HttpContext httpContext)
  at Microsoft.AspNet.Hosting.Internal.HostingEngine
      .&lt;&gt;c__DisplayClass32_0.&lt;&lt;Start&gt;b__0&gt;d.MoveNext()
  
  --- End of stack trace from previous location where exception was thrown ---
  
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter
      .HandleNonSuccessAndDebuggerNotification(Task task)
  at Microsoft.AspNet.Server.Kestrel.Http.Frame
      .&lt;RequestProcessingAsync&gt;d__79.MoveNext()
  
  ---&gt; (Inner Exception #0) System.ArgumentException: Parameter name: value
  
  at Microsoft.AspNet.Http.PathString..ctor(String value)
  at Microsoft.AspNet.Http.Internal.DefaultHttpRequest.get_Path()
  at Microsoft.AspNet.Hosting.Internal.HostingLoggerExtensions
      .HostingRequestStarting.ToString()
  at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log(
      LogLevel logLevel, Int32 eventId, Object state, 
      Exception exception, Func`3 formatter)
  at Microsoft.Extensions.Logging.Logger.Log(
      LogLevel logLevel, Int32 eventId, Object state, 
      Exception exception, Func`3 formatter)&lt;---
  </code></pre>
  
  <p>This is the entire ASP.NET Core program.</p>
  
  <pre><code>using System;
  using Microsoft.AspNet.Builder;
  using Microsoft.AspNet.Http;
  using Microsoft.Extensions.Logging;
  
  namespace EmptyApplication01
  {
      public class Startup
      {
          public void Configure(
              IApplicationBuilder app, 
              ILoggerFactory loggerFactory)
          {
              loggerFactory.AddConsole(minLevel: LogLevel.Verbose);
  
              app.Run(async (context) =&gt;
              {
                  var logger = loggerFactory.CreateLogger("CatchAll");
                  logger.LogInformation(DateTime.Now.ToString());
  
                  await context.Response.WriteAsync("head, body");
              });
          }
      }
  }
  </code></pre>